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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001137/0.001137, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001341/0.001341, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.692/1.692, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.898/2.898, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005155/0.0005155, allocations: 9.547 kB / 0.9021 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3364, allocations: 159.6 MB / 1.058 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004702/0.3412, allocations: 3.357 MB / 1.061 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002812/0.344, allocations: 1.614 MB / 1.063 GB, free: 356 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003124/0.3444, allocations: 4 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002663/0.3446, allocations: 59.5 kB / 1.063 GB, free: 292 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006124/0.3453, allocations: 179.1 kB / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005832/0.3459, allocations: 151.6 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007018/0.3466, allocations: 0.5334 MB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000494/0.3471, allocations: 289.2 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003249/0.3474, allocations: 151.4 kB / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005174/0.3479, allocations: 199.3 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.463e-05/0.348, allocations: 16 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003595/0.3484, allocations: 115.8 kB / 1.065 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.3485, allocations: 111.7 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.3486, allocations: 81.58 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004961/0.3491, allocations: 391.2 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3492, allocations: 0 / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3492, allocations: 0 / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.5e-05/0.3492, allocations: 0 / 1.065 GB, free: 14.07 MB / 0.8262 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.001035/0.3502, allocations: 0.5691 MB / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.3503, allocations: 12.03 kB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009295/0.3512, allocations: 139.4 kB / 1.066 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004325/0.3517, allocations: 286.5 kB / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.101e-05/0.3517, allocations: 20.66 kB / 1.066 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.053e-05/0.3518, allocations: 27.98 kB / 1.066 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006965/0.3525, allocations: 455.6 kB / 1.067 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.3525, allocations: 3.938 kB / 1.067 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.651e-05/0.3525, allocations: 19.92 kB / 1.067 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.973e-05/0.3526, allocations: 36.55 kB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005175/0.3531, allocations: 313.9 kB / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002362/0.3555, allocations: 2.189 MB / 1.069 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003867/0.3559, allocations: 251.8 kB / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/0.3561, allocations: 116.8 kB / 1.069 GB, free: 9.293 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.3562, allocations: 3.984 kB / 1.069 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.3562, allocations: 34.81 kB / 1.069 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.643e-06/0.3562, allocations: 0 / 1.069 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0006109/0.3568, allocations: 305.5 kB / 1.07 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.3569, allocations: 51.41 kB / 1.07 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.3572, allocations: 274.5 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.3572, allocations: 29.7 kB / 1.07 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.3574, allocations: 207.8 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.586e-05/0.3574, allocations: 47.28 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.388e-05/0.3575, allocations: 8 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3576, allocations: 334.8 kB / 1.071 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.3577, allocations: 56.44 kB / 1.071 GB, free: 7.895 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.3579, allocations: 148.7 kB / 1.071 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.3581, allocations: 75.97 kB / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.3581, allocations: 0 / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004378/0.3585, allocations: 264.4 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.3585, allocations: 8 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.3586, allocations: 4 kB / 1.071 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002008/0.3588, allocations: 25.22 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.359, allocations: 51.92 kB / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.3602, allocations: 1.327 MB / 1.072 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001689/0.3604, allocations: 27.64 kB / 1.073 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.86e-05/0.3604, allocations: 16 kB / 1.073 GB, free: 5.781 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001694/0.3606, allocations: 162.3 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.883e-05/0.3606, allocations: 23.72 kB / 1.073 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.166e-05/0.3607, allocations: 25.83 kB / 1.073 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3607, allocations: 4 kB / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3607, allocations: 0 / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3607, allocations: 4.125 kB / 1.073 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009715/0.3617, allocations: 0.722 MB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3617, allocations: 7.969 kB / 1.073 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.461e-05/0.3618, allocations: 20 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.031e-05/0.3619, allocations: 24.84 kB / 1.074 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.3619, allocations: 4 kB / 1.074 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009507/0.3629, allocations: 1.315 MB / 1.075 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/0.3629, allocations: 3.938 kB / 1.075 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003534/0.3633, allocations: 313.3 kB / 1.075 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.3634, allocations: 112.8 kB / 1.075 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.036e-05/0.3635, allocations: 8 kB / 1.075 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.3636, allocations: 12 kB / 1.075 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.929e-05/0.3637, allocations: 11.98 kB / 1.075 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.3637, allocations: 8 kB / 1.075 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001835/0.3639, allocations: 193.9 kB / 1.075 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3639, allocations: 0 / 1.075 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004113/0.3643, allocations: 79.75 kB / 1.076 GB, free: 2.457 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001403/0.3644, allocations: 119.1 kB / 1.076 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005104/0.365, allocations: 262.5 kB / 1.076 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.365, allocations: 0 / 1.076 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002065/0.3652, allocations: 179.7 kB / 1.076 GB, free: 1.871 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004846/0.3657, allocations: 55.7 kB / 1.076 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.3667, allocations: 0.6526 MB / 1.077 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004293/0.3672, allocations: 0.7835 MB / 1.077 GB, free: 320 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001659/0.3673, allocations: 50.2 kB / 1.078 GB, free: 272 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.957e-05/0.3674, allocations: 19.44 kB / 1.078 GB, free: 252 kB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3674, allocations: 0 / 1.078 GB, free: 252 kB / 0.8262 GB Notification: Performance of Templates: time 0.006349/0.3737, allocations: 2.487 MB / 1.08 GB, free: 13.79 MB / 0.8419 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