Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00817/0.00817, allocations: 170 kB / 16.27 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.311/2.311, allocations: 390.9 MB / 0.6664 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003243/0.0003244, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7157/0.716, allocations: 142.4 MB / 0.9552 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003173/0.7193, allocations: 2.762 MB / 0.9579 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002252/0.7215, allocations: 1.702 MB / 0.9595 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.7217, allocations: 4.125 kB / 0.9595 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001675/0.7218, allocations: 35.84 kB / 0.9596 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004259/0.7223, allocations: 197.4 kB / 0.9598 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003855/0.7227, allocations: 166 kB / 0.9599 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004136/0.7231, allocations: 464.8 kB / 0.9604 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007912/0.7239, allocations: 0.5264 MB / 0.9609 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.7241, allocations: 111.8 kB / 0.961 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002855/0.7243, allocations: 152.9 kB / 0.9611 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.811e-05/0.7244, allocations: 10.75 kB / 0.9611 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004125/0.7248, allocations: 287.4 kB / 0.9614 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.7249, allocations: 88.39 kB / 0.9615 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.725, allocations: 130.5 kB / 0.9616 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004448/0.7255, allocations: 426.1 kB / 0.962 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.7255, allocations: 0 / 0.962 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.013e-06/0.7255, allocations: 4 kB / 0.962 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.7255, allocations: 1.188 kB / 0.962 GB, free: 2.621 MB / 0.7169 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.0007905/0.7263, allocations: 0.5002 MB / 0.9625 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.7264, allocations: 9.875 kB / 0.9625 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.084e-05/0.7264, allocations: 63.34 kB / 0.9626 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007064/0.7271, allocations: 97.14 kB / 0.9627 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002658/0.7274, allocations: 263.3 kB / 0.9629 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.7275, allocations: 17.03 kB / 0.963 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.7276, allocations: 20.59 kB / 0.963 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000555/0.7281, allocations: 374.1 kB / 0.9633 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.7281, allocations: 5.062 kB / 0.9633 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.256e-05/0.7282, allocations: 10.83 kB / 0.9633 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001008/0.7283, allocations: 28.14 kB / 0.9634 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004384/0.7287, allocations: 315 kB / 0.9637 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001533/0.7303, allocations: 1.53 MB / 0.9652 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004168/0.7307, allocations: 230.4 kB / 0.9654 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.7309, allocations: 115.4 kB / 0.9655 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000131/0.731, allocations: 87.19 kB / 0.9656 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.731, allocations: 35.84 kB / 0.9656 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=18): time 1.293e-06/0.7311, allocations: 0 / 0.9656 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.001224/0.7323, allocations: 0.7867 MB / 0.9664 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.81e-05/0.7323, allocations: 57.62 kB / 0.9664 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003067/0.7326, allocations: 189.9 kB / 0.9666 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.7327, allocations: 30.67 kB / 0.9666 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002236/0.7329, allocations: 163.5 kB / 0.9668 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.564e-05/0.733, allocations: 75.94 kB / 0.9669 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-05/0.7331, allocations: 29.08 kB / 0.9669 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.7332, allocations: 335.2 kB / 0.9672 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.7334, allocations: 112.9 kB / 0.9673 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.7336, allocations: 171.8 kB / 0.9675 GB, free: 14.03 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004116/0.7341, allocations: 298.5 kB / 0.9678 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.7341, allocations: 1 kB / 0.9678 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007879/0.7349, allocations: 416 kB / 0.9682 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.7349, allocations: 11.09 kB / 0.9682 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.7349, allocations: 5.875 kB / 0.9682 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004059/0.7353, allocations: 102.2 kB / 0.9683 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002379/0.7356, allocations: 45.91 kB / 0.9683 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001798/0.7374, allocations: 1.747 MB / 0.97 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.7376, allocations: 15.36 kB / 0.9701 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.7376, allocations: 7.438 kB / 0.9701 GB, free: 11.95 MB / 0.7325 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.0001677/0.7378, allocations: 161.7 kB / 0.9702 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.778e-05/0.7379, allocations: 15.69 kB / 0.9702 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005058/0.7384, allocations: 305.5 kB / 0.9705 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.7384, allocations: 1.969 kB / 0.9705 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-06/0.7384, allocations: 0 / 0.9705 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.7384, allocations: 5.047 kB / 0.9705 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008765/0.7393, allocations: 0.6967 MB / 0.9712 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.7393, allocations: 1.594 kB / 0.9712 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002942/0.7396, allocations: 61.36 kB / 0.9713 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.7396, allocations: 2.031 kB / 0.9713 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.7396, allocations: 6.344 kB / 0.9713 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.7397, allocations: 1.562 kB / 0.9713 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.7397, allocations: 4.938 kB / 0.9713 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000605/0.7403, allocations: 0.5055 MB / 0.9718 GB, free: 10.69 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.7404, allocations: 116.6 kB / 0.9719 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.7404, allocations: 10.22 kB / 0.9719 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.7406, allocations: 22.19 kB / 0.9719 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.726e-05/0.7407, allocations: 17.42 kB / 0.9719 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.7407, allocations: 5.312 kB / 0.9719 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001334/0.7408, allocations: 147.2 kB / 0.9721 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7408, allocations: 0 / 0.9721 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003883/0.7412, allocations: 61.72 kB / 0.9721 GB, free: 10.42 MB / 0.7325 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.0008832/0.7421, allocations: 1.057 MB / 0.9732 GB, free: 9.547 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007093/0.7428, allocations: 428.5 kB / 0.9736 GB, free: 9.281 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.7428, allocations: 1.125 kB / 0.9736 GB, free: 9.281 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000169/0.743, allocations: 125 kB / 0.9737 GB, free: 9.223 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/0.7434, allocations: 32.72 kB / 0.9737 GB, free: 9.207 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003968/0.7474, allocations: 3.029 MB / 0.9767 GB, free: 6.844 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.7477, allocations: 0.778 MB / 0.9775 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001836/0.7479, allocations: 56.91 kB / 0.9775 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.7481, allocations: 70.28 kB / 0.9776 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of SimCode: time 1.673e-06/0.7481, allocations: 0 / 0.9776 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07816/0.8262, allocations: 4.676 MB / 0.9821 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002262/0.8265, allocations: 238.5 kB / 0.9824 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.718/2.545, allocations: 2.188 kB / 0.9824 GB, free: 2.762 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches