Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002011/0.002011, allocations: 105.6 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002351/0.002351, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.885/2.885, allocations: 497.2 MB / 0.7812 GB, free: 11.93 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 68.08 kB / 1.134 GB, free: 13.21 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9009/0.9029, allocations: 173.9 MB / 1.304 GB, free: 32.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005264/0.9081, allocations: 3.129 MB / 1.307 GB, free: 29.99 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002529/0.9107, allocations: 1.74 MB / 1.309 GB, free: 28.82 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.9108, allocations: 2.469 kB / 1.309 GB, free: 28.82 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0009594/0.9118, allocations: 341.8 kB / 1.309 GB, free: 28.62 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0004385/0.9122, allocations: 216.8 kB / 1.309 GB, free: 28.51 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000401/0.9126, allocations: 178.4 kB / 1.309 GB, free: 28.42 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003075/0.9129, allocations: 322.6 kB / 1.31 GB, free: 28.29 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003118/0.9132, allocations: 189.3 kB / 1.31 GB, free: 28.21 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.9134, allocations: 129.2 kB / 1.31 GB, free: 28.16 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002763/0.9136, allocations: 170 kB / 1.31 GB, free: 28.09 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.208e-05/0.9137, allocations: 20.09 kB / 1.31 GB, free: 28.09 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003321/0.914, allocations: 249.6 kB / 1.31 GB, free: 28.02 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.56e-05/0.9141, allocations: 109.5 kB / 1.311 GB, free: 27.97 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.9142, allocations: 120.2 kB / 1.311 GB, free: 27.9 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004446/0.9147, allocations: 435.1 kB / 1.311 GB, free: 27.75 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.9147, allocations: 0 / 1.311 GB, free: 27.75 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.162e-06/0.9147, allocations: 0 / 1.311 GB, free: 27.75 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.765e-06/0.9147, allocations: 2.688 kB / 1.311 GB, free: 27.75 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0009089/0.9156, allocations: 0.5486 MB / 1.312 GB, free: 27.27 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.9156, allocations: 10.69 kB / 1.312 GB, free: 27.27 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.543e-05/0.9157, allocations: 61.88 kB / 1.312 GB, free: 27.22 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007045/0.9164, allocations: 96.55 kB / 1.312 GB, free: 27.2 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.9167, allocations: 256.1 kB / 1.312 GB, free: 26.96 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.9167, allocations: 21.94 kB / 1.312 GB, free: 26.95 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.802e-05/0.9168, allocations: 31.59 kB / 1.312 GB, free: 26.94 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004895/0.9173, allocations: 375.2 kB / 1.312 GB, free: 26.75 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.9173, allocations: 7.938 kB / 1.312 GB, free: 26.75 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.9173, allocations: 10.91 kB / 1.312 GB, free: 26.74 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.033e-05/0.9174, allocations: 26.86 kB / 1.312 GB, free: 26.73 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003818/0.9178, allocations: 304.8 kB / 1.313 GB, free: 26.64 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00146/0.9193, allocations: 1.529 MB / 1.314 GB, free: 25.37 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003746/0.9197, allocations: 207.7 kB / 1.314 GB, free: 25.29 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/0.9198, allocations: 101.7 kB / 1.315 GB, free: 25.25 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001195/0.9199, allocations: 89.41 kB / 1.315 GB, free: 25.15 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.9199, allocations: 40.73 kB / 1.315 GB, free: 25.11 MB / 1.061 GB Notification: Performance of pre-optimization done (n=18): time 1.413e-06/0.9199, allocations: 0 / 1.315 GB, free: 25.11 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.001079/0.921, allocations: 0.7971 MB / 1.315 GB, free: 24.62 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.921, allocations: 51.41 kB / 1.316 GB, free: 24.56 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.9212, allocations: 192.5 kB / 1.316 GB, free: 24.43 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.9212, allocations: 25.7 kB / 1.316 GB, free: 24.4 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.85e-05/0.9213, allocations: 175.8 kB / 1.316 GB, free: 24.25 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.861e-05/0.9213, allocations: 75.05 kB / 1.316 GB, free: 24.19 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.244e-05/0.9214, allocations: 57.52 kB / 1.316 GB, free: 24.15 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.54e-05/0.9214, allocations: 335 kB / 1.316 GB, free: 23.83 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001424/0.9216, allocations: 114.1 kB / 1.316 GB, free: 23.79 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.9218, allocations: 172.7 kB / 1.317 GB, free: 23.68 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003098/0.9221, allocations: 291.6 kB / 1.317 GB, free: 23.53 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.9221, allocations: 4 kB / 1.317 GB, free: 23.52 MB / 1.061 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006348/0.9227, allocations: 416.4 kB / 1.317 GB, free: 23.35 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.9227, allocations: 6.156 kB / 1.317 GB, free: 23.35 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.9227, allocations: 0 / 1.317 GB, free: 23.35 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004/0.9231, allocations: 110.8 kB / 1.317 GB, free: 23.31 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002406/0.9234, allocations: 52.06 kB / 1.317 GB, free: 23.31 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001469/0.9248, allocations: 1.869 MB / 1.319 GB, free: 21.73 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.925, allocations: 23.27 kB / 1.319 GB, free: 21.73 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.924e-05/0.9251, allocations: 11.34 kB / 1.319 GB, free: 21.72 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001242/0.9252, allocations: 155.5 kB / 1.319 GB, free: 21.59 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.416e-05/0.9252, allocations: 16 kB / 1.319 GB, free: 21.58 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004045/0.9256, allocations: 305.5 kB / 1.32 GB, free: 21.44 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.9256, allocations: 2.844 kB / 1.32 GB, free: 21.44 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.9256, allocations: 8 kB / 1.32 GB, free: 21.43 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.9256, allocations: 3.938 kB / 1.32 GB, free: 21.43 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000759/0.9264, allocations: 0.7014 MB / 1.32 GB, free: 20.96 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.9264, allocations: 0 / 1.32 GB, free: 20.96 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002755/0.9267, allocations: 61.62 kB / 1.321 GB, free: 20.96 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.9267, allocations: 3.938 kB / 1.321 GB, free: 20.96 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.9267, allocations: 6.625 kB / 1.321 GB, free: 20.95 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.9267, allocations: 6.688 kB / 1.321 GB, free: 20.95 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.9267, allocations: 0 / 1.321 GB, free: 20.95 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004886/0.9272, allocations: 0.5067 MB / 1.321 GB, free: 20.67 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.9273, allocations: 124.6 kB / 1.321 GB, free: 20.55 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.9273, allocations: 9.906 kB / 1.321 GB, free: 20.54 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.9275, allocations: 15.2 kB / 1.321 GB, free: 20.54 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.893e-05/0.9275, allocations: 20.39 kB / 1.321 GB, free: 20.53 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.9276, allocations: 5.25 kB / 1.321 GB, free: 20.53 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.505e-05/0.9276, allocations: 147.5 kB / 1.321 GB, free: 20.43 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.9276, allocations: 0 / 1.321 GB, free: 20.43 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003612/0.928, allocations: 61.75 kB / 1.321 GB, free: 20.42 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006734/0.9287, allocations: 1.059 MB / 1.322 GB, free: 19.59 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006399/0.9293, allocations: 410.5 kB / 1.323 GB, free: 19.39 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.9293, allocations: 4.062 kB / 1.323 GB, free: 19.38 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.9295, allocations: 112.2 kB / 1.323 GB, free: 19.35 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003747/0.9298, allocations: 32.62 kB / 1.323 GB, free: 19.34 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003034/0.9329, allocations: 2.902 MB / 1.326 GB, free: 17.36 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002181/0.9331, allocations: 0.7776 MB / 1.327 GB, free: 16.65 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001883/0.9333, allocations: 63.47 kB / 1.327 GB, free: 16.64 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.9334, allocations: 65.48 kB / 1.327 GB, free: 16.59 MB / 1.061 GB Notification: Performance of SimCode: time 5.51e-07/0.9334, allocations: 0 / 1.327 GB, free: 16.59 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03359/0.967, allocations: 5.136 MB / 1.332 GB, free: 15.98 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.933/10.9, allocations: 3.719 kB / 1.332 GB, free: 15.98 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.284910918213427]