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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007649/0.0007649, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008095/0.0008095, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8311/0.8311, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.676/1.676, allocations: 389 MB / 0.633 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 2.285e-06/2.285e-06, allocations: 7.938 kB / 0.9997 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.129e-05/1.358e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.002897/0.00291, allocations: 3.052 MB / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001612/0.004522, allocations: 1.679 MB / 1.004 GB, free: 8.75 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.838e-05/0.004611, allocations: 7.938 kB / 1.004 GB, free: 8.742 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0005891/0.0052, allocations: 334.6 kB / 1.005 GB, free: 8.414 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0002688/0.005469, allocations: 214.8 kB / 1.005 GB, free: 8.203 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.005725, allocations: 187.2 kB / 1.005 GB, free: 8.02 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002431/0.005968, allocations: 326.9 kB / 1.005 GB, free: 7.699 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002403/0.006208, allocations: 169 kB / 1.005 GB, free: 7.531 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.0064, allocations: 191.5 kB / 1.006 GB, free: 7.344 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000196/0.006596, allocations: 151.6 kB / 1.006 GB, free: 7.195 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.59e-05/0.006621, allocations: 24 kB / 1.006 GB, free: 7.172 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002068/0.006828, allocations: 223.4 kB / 1.006 GB, free: 6.953 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 8.107e-05/0.006909, allocations: 115.7 kB / 1.006 GB, free: 6.84 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 6.447e-05/0.006974, allocations: 83.77 kB / 1.006 GB, free: 6.758 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003524/0.007326, allocations: 438.7 kB / 1.007 GB, free: 6.328 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.007328, allocations: 0 / 1.007 GB, free: 6.328 MB / 0.9636 GB Notification: Performance of FrontEnd: time 8.32e-07/0.007329, allocations: 0 / 1.007 GB, free: 6.328 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.007333, allocations: 0 / 1.007 GB, free: 6.328 MB / 0.9636 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.0005961/0.007929, allocations: 497.3 kB / 1.007 GB, free: 5.812 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.007965, allocations: 12.75 kB / 1.007 GB, free: 5.801 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.443e-05/0.00801, allocations: 58.72 kB / 1.007 GB, free: 5.734 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003765/0.008386, allocations: 92.69 kB / 1.007 GB, free: 5.645 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002184/0.008605, allocations: 199.5 kB / 1.007 GB, free: 5.426 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.008619, allocations: 16.86 kB / 1.007 GB, free: 5.41 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.099e-05/0.00869, allocations: 28.52 kB / 1.008 GB, free: 5.383 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003699/0.00906, allocations: 428.9 kB / 1.008 GB, free: 4.93 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.009072, allocations: 8.125 kB / 1.008 GB, free: 4.922 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.009094, allocations: 11.94 kB / 1.008 GB, free: 4.91 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.593e-05/0.00915, allocations: 28.48 kB / 1.008 GB, free: 4.883 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002955/0.009445, allocations: 305.8 kB / 1.008 GB, free: 4.582 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000955/0.0104, allocations: 1.077 MB / 1.009 GB, free: 3.445 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002613/0.01066, allocations: 210.4 kB / 1.01 GB, free: 3.23 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.416e-05/0.01076, allocations: 108.8 kB / 1.01 GB, free: 3.121 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 7.285e-05/0.01083, allocations: 11.94 kB / 1.01 GB, free: 3.109 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.01085, allocations: 34.56 kB / 1.01 GB, free: 3.066 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=18): time 1.343e-06/0.01085, allocations: 0 / 1.01 GB, free: 3.066 MB / 0.9636 GB Notification: Performance of matching and sorting (n=19): time 0.000849/0.0117, allocations: 0.7251 MB / 1.01 GB, free: 2.309 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.01172, allocations: 51.41 kB / 1.01 GB, free: 2.246 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.01185, allocations: 194.7 kB / 1.011 GB, free: 2.047 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.01186, allocations: 33.69 kB / 1.011 GB, free: 2.008 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 6.2e-05/0.01192, allocations: 156.2 kB / 1.011 GB, free: 1.852 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.546e-05/0.01196, allocations: 87.27 kB / 1.011 GB, free: 1.766 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.007e-05/0.01202, allocations: 53.69 kB / 1.011 GB, free: 1.707 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 6.821e-05/0.01209, allocations: 326.8 kB / 1.011 GB, free: 1.379 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.0122, allocations: 111.9 kB / 1.011 GB, free: 1.27 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.01234, allocations: 183.2 kB / 1.011 GB, free: 1.07 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002498/0.01259, allocations: 289.8 kB / 1.012 GB, free: 0.7656 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01259, allocations: 7.938 kB / 1.012 GB, free: 0.7578 MB / 0.9636 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004549/0.01305, allocations: 410 kB / 1.012 GB, free: 356 kB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.01306, allocations: 10.34 kB / 1.012 GB, free: 348 kB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.391e-06/0.01306, allocations: 3.938 kB / 1.012 GB, free: 344 kB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002346/0.0133, allocations: 101 kB / 1.012 GB, free: 240 kB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.01343, allocations: 55.89 kB / 1.012 GB, free: 184 kB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.0146, allocations: 1.761 MB / 1.014 GB, free: 14.31 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.01471, allocations: 20 kB / 1.014 GB, free: 14.29 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.01472, allocations: 8 kB / 1.014 GB, free: 14.28 MB / 0.9792 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 9.866e-05/0.01482, allocations: 163.5 kB / 1.014 GB, free: 14.11 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.01485, allocations: 16.09 kB / 1.014 GB, free: 14.1 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002972/0.01514, allocations: 305.5 kB / 1.015 GB, free: 13.79 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.01514, allocations: 4 kB / 1.015 GB, free: 13.78 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-06/0.01515, allocations: 3.938 kB / 1.015 GB, free: 13.78 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.01515, allocations: 0 / 1.015 GB, free: 13.78 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005488/0.0157, allocations: 0.6474 MB / 1.015 GB, free: 13.07 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.0157, allocations: 4 kB / 1.015 GB, free: 13.07 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.01585, allocations: 55.89 kB / 1.015 GB, free: 13.02 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.01586, allocations: 4 kB / 1.015 GB, free: 13.01 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.01587, allocations: 4 kB / 1.015 GB, free: 13.01 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.01587, allocations: 4.062 kB / 1.015 GB, free: 13 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.01587, allocations: 7.938 kB / 1.015 GB, free: 13 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003757/0.01625, allocations: 0.5087 MB / 1.016 GB, free: 12.46 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 5.203e-05/0.0163, allocations: 35.92 kB / 1.016 GB, free: 12.43 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.01632, allocations: 11.98 kB / 1.016 GB, free: 12.42 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.563e-05/0.0164, allocations: 11.92 kB / 1.016 GB, free: 12.41 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.362e-05/0.01643, allocations: 19.92 kB / 1.016 GB, free: 12.39 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.01644, allocations: 4 kB / 1.016 GB, free: 12.38 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 8.403e-05/0.01652, allocations: 144.6 kB / 1.016 GB, free: 12.24 MB / 0.9792 GB Notification: Performance of sort global known variables: time 5e-08/0.01652, allocations: 0 / 1.016 GB, free: 12.24 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.000217/0.01674, allocations: 64 kB / 1.016 GB, free: 12.18 MB / 0.9792 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.0005607/0.0173, allocations: 1.063 MB / 1.017 GB, free: 11.08 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.00045/0.01775, allocations: 410.3 kB / 1.017 GB, free: 10.67 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.01775, allocations: 0 / 1.017 GB, free: 10.67 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.01785, allocations: 116.4 kB / 1.018 GB, free: 10.55 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.0181, allocations: 37.27 kB / 1.018 GB, free: 10.52 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/0.02033, allocations: 2.855 MB / 1.02 GB, free: 7.535 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.929e-05/0.02043, allocations: 165.2 kB / 1.021 GB, free: 7.355 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 9.941e-05/0.02053, allocations: 53.91 kB / 1.021 GB, free: 7.305 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.195e-05/0.02061, allocations: 68.47 kB / 1.021 GB, free: 7.238 MB / 0.9792 GB Notification: Performance of SimCode: time 7.21e-07/0.02061, allocations: 0 / 1.021 GB, free: 7.238 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02079/0.0414, allocations: 5.861 MB / 1.026 GB, free: 1.543 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.973/7.014, allocations: 3.938 kB / 1.026 GB, free: 1.539 MB / 0.9792 GB " [Timeout remaining time 293] (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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 10.756275728344917]