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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.00747/0.00747, allocations: 100.7 kB / 15.73 MB, free: 6.043 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.00173/0.00173, allocations: 196.3 kB / 16.67 MB, free: 5.977 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.275/1.275, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.352/2.352, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 66.02 kB / 0.9504 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2584, allocations: 140.4 MB / 1.087 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005531/0.264, allocations: 3.081 MB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003317/0.2674, allocations: 1.714 MB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002193/0.2676, allocations: 4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00112/0.2688, allocations: 334.7 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000598/0.2694, allocations: 211.1 kB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005652/0.27, allocations: 187.5 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004908/0.2705, allocations: 319 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004636/0.2709, allocations: 235.5 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002921/0.2712, allocations: 147.5 kB / 1.094 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003806/0.2716, allocations: 155.5 kB / 1.094 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.482e-05/0.2717, allocations: 20 kB / 1.094 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004685/0.2722, allocations: 239.5 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001356/0.2723, allocations: 99.77 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002284/0.2726, allocations: 127.4 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006629/0.2732, allocations: 427.5 kB / 1.095 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.2732, allocations: 0 / 1.095 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2733, allocations: 7.938 kB / 1.095 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.289e-05/0.2733, allocations: 4 kB / 1.095 GB, free: 10.71 MB / 0.8575 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.001134/0.2744, allocations: 0.5342 MB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.2745, allocations: 12.03 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.695e-05/0.2746, allocations: 58.72 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007939/0.2754, allocations: 96.55 kB / 1.095 GB, free: 9.961 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004569/0.2758, allocations: 257.8 kB / 1.095 GB, free: 9.672 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.2759, allocations: 16.8 kB / 1.095 GB, free: 9.656 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.276, allocations: 28.55 kB / 1.096 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005994/0.2766, allocations: 369 kB / 1.096 GB, free: 9.242 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.2766, allocations: 7.938 kB / 1.096 GB, free: 9.234 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.282e-05/0.2766, allocations: 4 kB / 1.096 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001091/0.2768, allocations: 36.41 kB / 1.096 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005361/0.2773, allocations: 309.5 kB / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/0.2792, allocations: 1.537 MB / 1.098 GB, free: 7.203 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004287/0.2796, allocations: 232.1 kB / 1.098 GB, free: 6.969 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.2798, allocations: 116.8 kB / 1.098 GB, free: 6.852 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001326/0.2799, allocations: 85.11 kB / 1.098 GB, free: 6.75 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.28, allocations: 34.56 kB / 1.098 GB, free: 6.707 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=18): time 1.423e-06/0.28, allocations: 0 / 1.098 GB, free: 6.707 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001359/0.2814, allocations: 0.7879 MB / 1.099 GB, free: 5.867 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.2814, allocations: 55.41 kB / 1.099 GB, free: 5.801 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.2816, allocations: 191.2 kB / 1.099 GB, free: 5.605 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.2816, allocations: 33.69 kB / 1.099 GB, free: 5.566 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.693e-05/0.2817, allocations: 159.8 kB / 1.099 GB, free: 5.406 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.55e-05/0.2818, allocations: 70.98 kB / 1.099 GB, free: 5.336 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.276e-05/0.2819, allocations: 57.69 kB / 1.099 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.282, allocations: 338.8 kB / 1.1 GB, free: 4.934 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.2822, allocations: 115.9 kB / 1.1 GB, free: 4.82 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.2824, allocations: 161.9 kB / 1.1 GB, free: 4.641 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004529/0.2829, allocations: 298.4 kB / 1.1 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2829, allocations: 0 / 1.1 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007984/0.2837, allocations: 422.9 kB / 1.101 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.2837, allocations: 8 kB / 1.101 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.2837, allocations: 0 / 1.101 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004311/0.2842, allocations: 108.8 kB / 1.101 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.2844, allocations: 43.97 kB / 1.101 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.2865, allocations: 1.872 MB / 1.103 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/0.2867, allocations: 19.95 kB / 1.103 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.48e-05/0.2868, allocations: 11.98 kB / 1.103 GB, free: 1.699 MB / 0.8575 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.0002167/0.287, allocations: 165 kB / 1.103 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.131e-05/0.2871, allocations: 15.81 kB / 1.103 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004966/0.2876, allocations: 304.9 kB / 1.103 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.2876, allocations: 4 kB / 1.103 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.2876, allocations: 0 / 1.103 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.862e-06/0.2876, allocations: 7.922 kB / 1.103 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009071/0.2885, allocations: 0.7009 MB / 1.104 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.2885, allocations: 0 / 1.104 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002958/0.2888, allocations: 63.89 kB / 1.104 GB, free: 392 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.2888, allocations: 3.938 kB / 1.104 GB, free: 388 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.2889, allocations: 4 kB / 1.104 GB, free: 384 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.2889, allocations: 0 / 1.104 GB, free: 384 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.2889, allocations: 4 kB / 1.104 GB, free: 380 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006027/0.2895, allocations: 0.5118 MB / 1.104 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.2896, allocations: 120.8 kB / 1.105 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/0.2897, allocations: 11.98 kB / 1.105 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/0.2899, allocations: 11.97 kB / 1.105 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.348e-05/0.2899, allocations: 15.98 kB / 1.105 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.2899, allocations: 4 kB / 1.105 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002168/0.2901, allocations: 148.1 kB / 1.105 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.4e-07/0.2901, allocations: 0 / 1.105 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003764/0.2905, allocations: 68 kB / 1.105 GB, free: 15.45 MB / 0.8731 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.0009813/0.2915, allocations: 1.061 MB / 1.106 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007241/0.2923, allocations: 426.3 kB / 1.106 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.2923, allocations: 0 / 1.106 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001688/0.2924, allocations: 120.4 kB / 1.106 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003892/0.2928, allocations: 57.05 kB / 1.106 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003758/0.2966, allocations: 2.889 MB / 1.109 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.297, allocations: 0.7753 MB / 1.11 GB, free: 9.922 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001668/0.2972, allocations: 61.84 kB / 1.11 GB, free: 9.863 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.2973, allocations: 63.41 kB / 1.11 GB, free: 9.805 MB / 0.8731 GB Notification: Performance of SimCode: time 3.81e-07/0.2973, allocations: 0 / 1.11 GB, free: 9.805 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02826/0.3256, allocations: 5.09 MB / 1.115 GB, free: 4.887 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/13.73, allocations: 28.59 kB / 1.115 GB, free: 4.863 MB / 0.8731 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