Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_9_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_9_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.00102/0.00102, allocations: 97.95 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.007294/0.007295, allocations: 170 kB / 16.27 MB, free: 6.648 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.436/1.436, allocations: 223.3 MB / 240.3 MB, free: 5.359 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.554/2.554, allocations: 390.9 MB / 0.6663 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005922/0.0005921, allocations: 16 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8174/0.818, allocations: 142.4 MB / 0.955 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.007208/0.8253, allocations: 3.492 MB / 0.9584 GB, free: 5 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004042/0.8294, allocations: 1.711 MB / 0.9601 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004859/0.8299, allocations: 5.5 kB / 0.9601 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003894/0.8303, allocations: 59.75 kB / 0.9602 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00105/0.8314, allocations: 204.5 kB / 0.9604 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009498/0.8324, allocations: 194.4 kB / 0.9606 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001165/0.8335, allocations: 0.6613 MB / 0.9612 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006387/0.8342, allocations: 315.7 kB / 0.9615 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004199/0.8346, allocations: 153.8 kB / 0.9617 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007375/0.8354, allocations: 204.4 kB / 0.9619 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.557e-05/0.8355, allocations: 14.53 kB / 0.9619 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007974/0.8363, allocations: 301.9 kB / 0.9622 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001817/0.8365, allocations: 109.4 kB / 0.9623 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002269/0.8367, allocations: 174.6 kB / 0.9624 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007429/0.8375, allocations: 0.4976 MB / 0.9629 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.8375, allocations: 0 / 0.9629 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.004e-06/0.8375, allocations: 4 kB / 0.9629 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.8375, allocations: 0 / 0.9629 GB, free: 1.859 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001138/0.8387, allocations: 0.5769 MB / 0.9635 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.8387, allocations: 10.25 kB / 0.9635 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001443/0.8402, allocations: 138.5 kB / 0.9636 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004767/0.8407, allocations: 290 kB / 0.9639 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.12e-05/0.8407, allocations: 22.92 kB / 0.9639 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.199e-05/0.8408, allocations: 30.16 kB / 0.9639 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.8419, allocations: 466.1 kB / 0.9644 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/0.842, allocations: 5.438 kB / 0.9644 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.006e-05/0.842, allocations: 12.19 kB / 0.9644 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-05/0.8421, allocations: 29.61 kB / 0.9644 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008117/0.843, allocations: 321.5 kB / 0.9647 GB, free: 492 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003253/0.8462, allocations: 2.193 MB / 0.9669 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005641/0.8468, allocations: 247.4 kB / 0.9671 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000374/0.8472, allocations: 115.1 kB / 0.9672 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.8472, allocations: 2 kB / 0.9672 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/0.8473, allocations: 36.94 kB / 0.9673 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.883e-06/0.8473, allocations: 0 / 0.9673 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0009117/0.8482, allocations: 306.4 kB / 0.9676 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.825e-05/0.8483, allocations: 57.47 kB / 0.9676 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004538/0.8488, allocations: 266.5 kB / 0.9679 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/0.8488, allocations: 30.95 kB / 0.9679 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001997/0.849, allocations: 213 kB / 0.9681 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.41e-05/0.8491, allocations: 42.7 kB / 0.9681 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.428e-05/0.8492, allocations: 27.86 kB / 0.9682 GB, free: 13.31 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001945/0.8494, allocations: 332.2 kB / 0.9685 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.8495, allocations: 62.39 kB / 0.9685 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/0.8498, allocations: 143.3 kB / 0.9687 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004364/0.8503, allocations: 223.6 kB / 0.9689 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.8503, allocations: 4.906 kB / 0.9689 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006902/0.851, allocations: 255.8 kB / 0.9691 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.851, allocations: 10.44 kB / 0.9692 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.851, allocations: 3 kB / 0.9692 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002367/0.8513, allocations: 30.61 kB / 0.9692 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002887/0.8516, allocations: 50.88 kB / 0.9692 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001592/0.8532, allocations: 1.325 MB / 0.9705 GB, free: 11.08 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.8535, allocations: 31.69 kB / 0.9706 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-05/0.8536, allocations: 17.42 kB / 0.9706 GB, free: 11.05 MB / 0.7325 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.0003045/0.8539, allocations: 165.1 kB / 0.9707 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.262e-05/0.854, allocations: 31.92 kB / 0.9708 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.031e-05/0.8541, allocations: 24.06 kB / 0.9708 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.8541, allocations: 2.031 kB / 0.9708 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/0.8541, allocations: 0.9688 kB / 0.9708 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.8541, allocations: 3.984 kB / 0.9708 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/0.8556, allocations: 0.7032 MB / 0.9715 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.8557, allocations: 1.562 kB / 0.9715 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.8558, allocations: 26.77 kB / 0.9715 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001303/0.8559, allocations: 24.59 kB / 0.9715 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.856, allocations: 6.531 kB / 0.9715 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001422/0.8574, allocations: 1.321 MB / 0.9728 GB, free: 8.844 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.8574, allocations: 1.188 kB / 0.9728 GB, free: 8.844 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005185/0.8579, allocations: 315.1 kB / 0.9731 GB, free: 8.578 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.8581, allocations: 114.2 kB / 0.9732 GB, free: 8.461 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.382e-05/0.8582, allocations: 10.95 kB / 0.9732 GB, free: 8.453 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.8584, allocations: 11.38 kB / 0.9733 GB, free: 8.449 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.981e-05/0.8585, allocations: 14.27 kB / 0.9733 GB, free: 8.441 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.8585, allocations: 9.438 kB / 0.9733 GB, free: 8.438 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000277/0.8588, allocations: 194.1 kB / 0.9735 GB, free: 8.305 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8588, allocations: 1.219 kB / 0.9735 GB, free: 8.305 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007058/0.8595, allocations: 83 kB / 0.9735 GB, free: 8.281 MB / 0.7325 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.0001515/0.8597, allocations: 101.1 kB / 0.9736 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006471/0.8603, allocations: 270.1 kB / 0.9739 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.8604, allocations: 1.125 kB / 0.9739 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003379/0.8607, allocations: 185.3 kB / 0.9741 GB, free: 7.859 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008211/0.8615, allocations: 58.81 kB / 0.9741 GB, free: 7.832 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.863, allocations: 0.6771 MB / 0.9748 GB, free: 7.293 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005301/0.8635, allocations: 0.7888 MB / 0.9756 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002495/0.8638, allocations: 40.55 kB / 0.9756 GB, free: 6.527 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.236e-05/0.8639, allocations: 24.23 kB / 0.9756 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of SimCode: time 5.11e-07/0.8639, allocations: 0 / 0.9756 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of Templates: time 0.009307/0.8732, allocations: 2.556 MB / 0.9781 GB, free: 5.273 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches