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.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: 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.001564/0.001564, allocations: 103.8 kB / 16.35 MB, free: 5.824 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.001745/0.001745, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.432/1.432, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.317/2.317, allocations: 390.3 MB / 0.6655 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 66.31 kB / 0.814 GB, free: 32.61 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3102, allocations: 140.4 MB / 0.9511 GB, free: 8.016 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006091/0.3164, allocations: 3.838 MB / 0.9549 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002923/0.3193, allocations: 1.733 MB / 0.9566 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002122/0.3196, allocations: 7.938 kB / 0.9566 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001372/0.321, allocations: 0.4978 MB / 0.957 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0006481/0.3217, allocations: 210.9 kB / 0.9572 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005854/0.3223, allocations: 215.5 kB / 0.9575 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005253/0.3228, allocations: 470.5 kB / 0.9579 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006084/0.3234, allocations: 357.1 kB / 0.9582 GB, free: 0.6914 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002472/0.3237, allocations: 199.3 kB / 0.9584 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004003/0.3241, allocations: 219.2 kB / 0.9586 GB, free: 288 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.955e-05/0.3242, allocations: 28 kB / 0.9587 GB, free: 260 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004754/0.3247, allocations: 247.4 kB / 0.9589 GB, free: 12 kB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.3248, allocations: 123.7 kB / 0.959 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.325, allocations: 175.2 kB / 0.9592 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0006601/0.3257, allocations: 0.4984 MB / 0.9597 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3257, allocations: 0 / 0.9597 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3257, allocations: 0 / 0.9597 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.3258, allocations: 0 / 0.9597 GB, free: 15.22 MB / 0.7481 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.001093/0.3268, allocations: 0.6393 MB / 0.9603 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3269, allocations: 8.031 kB / 0.9603 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009364/0.3278, allocations: 132.4 kB / 0.9604 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004682/0.3283, allocations: 304.1 kB / 0.9607 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.3284, allocations: 21.03 kB / 0.9607 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.722e-05/0.3284, allocations: 24.38 kB / 0.9608 GB, free: 14.01 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006651/0.3291, allocations: 471.8 kB / 0.9612 GB, free: 13.51 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3291, allocations: 0 / 0.9612 GB, free: 13.51 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.518e-05/0.3291, allocations: 12 kB / 0.9612 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.115e-05/0.3292, allocations: 32.53 kB / 0.9613 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000508/0.3297, allocations: 321.9 kB / 0.9616 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00228/0.332, allocations: 2.181 MB / 0.9637 GB, free: 10.76 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003961/0.3324, allocations: 251.8 kB / 0.9639 GB, free: 10.49 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002532/0.3327, allocations: 112.9 kB / 0.964 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.3327, allocations: 7.938 kB / 0.9641 GB, free: 10.37 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.3328, allocations: 34.56 kB / 0.9641 GB, free: 10.32 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=14): time 2.946e-06/0.3328, allocations: 3.938 kB / 0.9641 GB, free: 10.32 MB / 0.7481 GB Notification: Performance of matching and sorting (n=14): time 0.0006334/0.3334, allocations: 299.5 kB / 0.9644 GB, free: 10 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.673e-05/0.3335, allocations: 51.41 kB / 0.9644 GB, free: 9.938 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002758/0.3337, allocations: 266.6 kB / 0.9647 GB, free: 9.672 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.3338, allocations: 25.7 kB / 0.9647 GB, free: 9.641 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.3339, allocations: 211.8 kB / 0.9649 GB, free: 9.43 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.755e-05/0.334, allocations: 51.3 kB / 0.965 GB, free: 9.379 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.516e-05/0.334, allocations: 45.86 kB / 0.965 GB, free: 9.324 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3342, allocations: 334.8 kB / 0.9653 GB, free: 8.988 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.3343, allocations: 60.38 kB / 0.9654 GB, free: 8.93 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.3344, allocations: 144.1 kB / 0.9655 GB, free: 8.75 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002836/0.3347, allocations: 218.9 kB / 0.9657 GB, free: 8.496 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3347, allocations: 7.938 kB / 0.9657 GB, free: 8.488 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004126/0.3352, allocations: 268.8 kB / 0.966 GB, free: 8.219 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.3352, allocations: 4 kB / 0.966 GB, free: 8.215 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.3352, allocations: 4 kB / 0.966 GB, free: 8.211 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000174/0.3354, allocations: 33.16 kB / 0.966 GB, free: 8.176 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.3356, allocations: 43.98 kB / 0.9661 GB, free: 8.133 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00123/0.3368, allocations: 1.43 MB / 0.9675 GB, free: 6.562 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.337, allocations: 35.62 kB / 0.9675 GB, free: 6.527 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.337, allocations: 8 kB / 0.9675 GB, free: 6.52 MB / 0.7481 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.0001772/0.3372, allocations: 175.6 kB / 0.9677 GB, free: 6.34 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.647e-05/0.3372, allocations: 23.91 kB / 0.9677 GB, free: 6.316 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.635e-05/0.3373, allocations: 25.83 kB / 0.9677 GB, free: 6.293 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3373, allocations: 4 kB / 0.9677 GB, free: 6.289 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.3373, allocations: 0 / 0.9677 GB, free: 6.289 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3373, allocations: 0 / 0.9677 GB, free: 6.289 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009093/0.3382, allocations: 0.6947 MB / 0.9684 GB, free: 5.504 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.3383, allocations: 0 / 0.9684 GB, free: 5.504 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.782e-05/0.3383, allocations: 27.92 kB / 0.9684 GB, free: 5.477 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001026/0.3385, allocations: 28.78 kB / 0.9685 GB, free: 5.445 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.3385, allocations: 8 kB / 0.9685 GB, free: 5.438 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.3395, allocations: 1.41 MB / 0.9698 GB, free: 3.883 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3395, allocations: 8.188 kB / 0.9698 GB, free: 3.875 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003894/0.3399, allocations: 317.1 kB / 0.9701 GB, free: 3.527 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.3401, allocations: 116.8 kB / 0.9703 GB, free: 3.395 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.958e-05/0.3401, allocations: 4 kB / 0.9703 GB, free: 3.391 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.3403, allocations: 15.98 kB / 0.9703 GB, free: 3.375 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.217e-05/0.3403, allocations: 15.86 kB / 0.9703 GB, free: 3.359 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.3404, allocations: 8 kB / 0.9703 GB, free: 3.352 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002133/0.3406, allocations: 198 kB / 0.9705 GB, free: 3.16 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.31e-07/0.3406, allocations: 0 / 0.9705 GB, free: 3.16 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000435/0.341, allocations: 71.84 kB / 0.9706 GB, free: 3.09 MB / 0.7481 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.0001477/0.3412, allocations: 103.2 kB / 0.9707 GB, free: 2.98 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005263/0.3417, allocations: 271.1 kB / 0.9709 GB, free: 2.703 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.3417, allocations: 0 / 0.9709 GB, free: 2.703 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000225/0.342, allocations: 190.5 kB / 0.9711 GB, free: 2.504 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004851/0.3424, allocations: 65.86 kB / 0.9712 GB, free: 2.445 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000994/0.3435, allocations: 0.5323 MB / 0.9717 GB, free: 1.867 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004345/0.3439, allocations: 0.7909 MB / 0.9725 GB, free: 1.051 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001304/0.344, allocations: 50.23 kB / 0.9725 GB, free: 1.004 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.907e-05/0.3441, allocations: 19.44 kB / 0.9725 GB, free: 0.9844 MB / 0.7481 GB Notification: Performance of SimCode: time 2.41e-07/0.3441, allocations: 0 / 0.9725 GB, free: 0.9844 MB / 0.7481 GB Notification: Performance of Templates: time 0.0063/0.3504, allocations: 2.687 MB / 0.9751 GB, free: 14.33 MB / 0.7637 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 -s cvode -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/jenkins1/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