Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.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 12.0.0-master/package.mo", uses=false) 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: translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001979/0.001979, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002363/0.002363, allocations: 192.7 kB / 16.25 MB, free: 6.633 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.466/1.466, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.965/2.965, allocations: 482.3 MB / 0.7542 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 69.03 kB / 0.9232 GB, free: 29.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3259, allocations: 162.2 MB / 1.082 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006585/0.3325, allocations: 3.867 MB / 1.085 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003513/0.3361, allocations: 1.714 MB / 1.087 GB, free: 8.148 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002321/0.3364, allocations: 7.938 kB / 1.087 GB, free: 8.141 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001492/0.3379, allocations: 489.6 kB / 1.088 GB, free: 7.664 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0005438/0.3384, allocations: 199.1 kB / 1.088 GB, free: 7.469 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005796/0.339, allocations: 199.6 kB / 1.088 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0005699/0.3396, allocations: 474.4 kB / 1.088 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000697/0.3403, allocations: 409.3 kB / 1.089 GB, free: 6.406 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002609/0.3406, allocations: 183.4 kB / 1.089 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004044/0.341, allocations: 227.1 kB / 1.089 GB, free: 6.004 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.086e-05/0.3411, allocations: 28 kB / 1.089 GB, free: 5.977 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004909/0.3416, allocations: 243.5 kB / 1.089 GB, free: 5.738 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001452/0.3417, allocations: 127.6 kB / 1.09 GB, free: 5.613 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001994/0.3419, allocations: 179.1 kB / 1.09 GB, free: 5.438 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006157/0.3426, allocations: 0.5024 MB / 1.09 GB, free: 4.934 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3426, allocations: 0 / 1.09 GB, free: 4.934 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3426, allocations: 3.938 kB / 1.09 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.3426, allocations: 8 kB / 1.09 GB, free: 4.922 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001118/0.3437, allocations: 0.6276 MB / 1.091 GB, free: 4.246 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.3438, allocations: 12.03 kB / 1.091 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009301/0.3447, allocations: 132.4 kB / 1.091 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003787/0.3451, allocations: 284.2 kB / 1.091 GB, free: 3.789 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.346e-05/0.3451, allocations: 21.03 kB / 1.091 GB, free: 3.77 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.164e-05/0.3452, allocations: 28.38 kB / 1.091 GB, free: 3.742 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007243/0.3459, allocations: 467.9 kB / 1.092 GB, free: 3.25 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.3459, allocations: 0 / 1.092 GB, free: 3.25 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.845e-05/0.346, allocations: 15.94 kB / 1.092 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.998e-05/0.346, allocations: 28.55 kB / 1.092 GB, free: 3.207 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005099/0.3466, allocations: 321.9 kB / 1.092 GB, free: 2.891 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002471/0.349, allocations: 2.197 MB / 1.094 GB, free: 492 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004118/0.3495, allocations: 255.7 kB / 1.094 GB, free: 208 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002641/0.3497, allocations: 112.8 kB / 1.095 GB, free: 92 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.701e-05/0.3498, allocations: 0 / 1.095 GB, free: 92 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.3498, allocations: 34.56 kB / 1.095 GB, free: 48 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=14): time 4.699e-06/0.3498, allocations: 4 kB / 1.095 GB, free: 44 kB / 0.8419 GB Notification: Performance of matching and sorting (n=14): time 0.0006667/0.3505, allocations: 310.5 kB / 1.095 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.3505, allocations: 55.41 kB / 1.095 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003027/0.3509, allocations: 266.5 kB / 1.095 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.3509, allocations: 25.7 kB / 1.095 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.3511, allocations: 203.8 kB / 1.095 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.411e-05/0.3511, allocations: 51.3 kB / 1.095 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.356e-05/0.3512, allocations: 53.94 kB / 1.096 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3514, allocations: 334.8 kB / 1.096 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.3515, allocations: 52.44 kB / 1.096 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.3517, allocations: 149.2 kB / 1.096 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002917/0.352, allocations: 215 kB / 1.096 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.352, allocations: 0 / 1.096 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004394/0.3524, allocations: 269.1 kB / 1.096 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.3524, allocations: 8 kB / 1.097 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.3525, allocations: 7.984 kB / 1.097 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001984/0.3527, allocations: 25.22 kB / 1.097 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001912/0.3529, allocations: 55.92 kB / 1.097 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00124/0.3541, allocations: 1.418 MB / 1.098 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001742/0.3543, allocations: 27.69 kB / 1.098 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.3543, allocations: 8 kB / 1.098 GB, free: 12.26 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001837/0.3545, allocations: 173.6 kB / 1.098 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.727e-05/0.3546, allocations: 23.72 kB / 1.098 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.579e-05/0.3546, allocations: 33.89 kB / 1.098 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3546, allocations: 0 / 1.098 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.3546, allocations: 0 / 1.098 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3547, allocations: 7.984 kB / 1.098 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009776/0.3556, allocations: 0.7024 MB / 1.099 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3557, allocations: 4 kB / 1.099 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.997e-05/0.3558, allocations: 23.98 kB / 1.099 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-05/0.3558, allocations: 28.91 kB / 1.099 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.3559, allocations: 4 kB / 1.099 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/0.3571, allocations: 1.418 MB / 1.1 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.3571, allocations: 4.031 kB / 1.1 GB, free: 9.598 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004043/0.3575, allocations: 317.1 kB / 1.101 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.3577, allocations: 124.7 kB / 1.101 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.87e-05/0.3577, allocations: 0 / 1.101 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.3579, allocations: 12 kB / 1.101 GB, free: 9.098 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.3579, allocations: 15.92 kB / 1.101 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.3579, allocations: 12 kB / 1.101 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002017/0.3582, allocations: 190 kB / 1.101 GB, free: 8.883 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3582, allocations: 0 / 1.101 GB, free: 8.883 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004267/0.3586, allocations: 75.75 kB / 1.101 GB, free: 8.809 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (14): * Single equations (assignments): 13 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001543/0.3588, allocations: 115.2 kB / 1.101 GB, free: 8.684 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005314/0.3593, allocations: 274.8 kB / 1.101 GB, free: 8.402 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3593, allocations: 0 / 1.101 GB, free: 8.402 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002472/0.3596, allocations: 178.5 kB / 1.102 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005166/0.3601, allocations: 61.2 kB / 1.102 GB, free: 8.156 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.3612, allocations: 0.6568 MB / 1.102 GB, free: 7.453 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.3617, allocations: 0.7909 MB / 1.103 GB, free: 6.637 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001524/0.3618, allocations: 42.27 kB / 1.103 GB, free: 6.598 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.925e-05/0.3619, allocations: 19.44 kB / 1.103 GB, free: 6.578 MB / 0.8575 GB Notification: Performance of SimCode: time 3.4e-07/0.3619, allocations: 0 / 1.103 GB, free: 6.578 MB / 0.8575 GB Notification: Performance of Templates: time 0.006768/0.3686, allocations: 2.698 MB / 1.106 GB, free: 3.91 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches