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.001778/0.001778, allocations: 105.9 kB / 16.27 MB, free: 5.984 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.001989/0.001989, allocations: 189 kB / 17.19 MB, free: 5.609 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.378/1.378, allocations: 222.9 MB / 240.9 MB, free: 15.18 MB / 206.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.243/2.243, allocations: 390.2 MB / 0.6653 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 64.98 kB / 0.8132 GB, free: 32.98 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2442, allocations: 140.4 MB / 0.9503 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.00549/0.2497, allocations: 3.852 MB / 0.954 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002708/0.2524, allocations: 1.729 MB / 0.9557 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002237/0.2527, allocations: 4 kB / 0.9557 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001353/0.254, allocations: 494.1 kB / 0.9562 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005528/0.2547, allocations: 226.8 kB / 0.9564 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005461/0.2552, allocations: 207.5 kB / 0.9566 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005265/0.2557, allocations: 470.5 kB / 0.957 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005595/0.2563, allocations: 373.3 kB / 0.9574 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002573/0.2566, allocations: 195.3 kB / 0.9576 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004011/0.257, allocations: 211.2 kB / 0.9578 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.139e-05/0.2571, allocations: 28 kB / 0.9578 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004405/0.2575, allocations: 247.4 kB / 0.9581 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.2576, allocations: 119.7 kB / 0.9582 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001696/0.2578, allocations: 175.2 kB / 0.9583 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005171/0.2583, allocations: 0.4906 MB / 0.9588 GB, free: 68 kB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2584, allocations: 8 kB / 0.9588 GB, free: 60 kB / 0.7325 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2584, allocations: 0 / 0.9588 GB, free: 60 kB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.203e-06/0.2584, allocations: 0 / 0.9588 GB, free: 60 kB / 0.7325 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.0009072/0.2593, allocations: 0.6353 MB / 0.9594 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.2593, allocations: 8.031 kB / 0.9595 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008828/0.2602, allocations: 128.4 kB / 0.9596 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003296/0.2606, allocations: 296.2 kB / 0.9599 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.2606, allocations: 21.02 kB / 0.9599 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.275e-05/0.2606, allocations: 32.31 kB / 0.9599 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005977/0.2612, allocations: 467.9 kB / 0.9604 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.2613, allocations: 3.938 kB / 0.9604 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.2613, allocations: 12 kB / 0.9604 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-05/0.2613, allocations: 28.53 kB / 0.9604 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004498/0.2618, allocations: 321.9 kB / 0.9607 GB, free: 14.01 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.2638, allocations: 2.189 MB / 0.9628 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003491/0.2641, allocations: 251.8 kB / 0.9631 GB, free: 11.33 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002294/0.2644, allocations: 112.8 kB / 0.9632 GB, free: 11.22 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.2644, allocations: 4 kB / 0.9632 GB, free: 11.22 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.2644, allocations: 34.56 kB / 0.9632 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.2644, allocations: 0 / 0.9632 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of matching and sorting (n=14): time 0.0005591/0.265, allocations: 299.3 kB / 0.9635 GB, free: 10.86 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.2651, allocations: 59.34 kB / 0.9636 GB, free: 10.79 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000245/0.2653, allocations: 262.6 kB / 0.9638 GB, free: 10.52 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.2653, allocations: 25.7 kB / 0.9638 GB, free: 10.49 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.2654, allocations: 207.8 kB / 0.964 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.509e-05/0.2655, allocations: 51.28 kB / 0.9641 GB, free: 10.23 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.62e-05/0.2656, allocations: 57.84 kB / 0.9641 GB, free: 10.17 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.2657, allocations: 334.8 kB / 0.9645 GB, free: 9.832 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.287e-05/0.2658, allocations: 60.44 kB / 0.9645 GB, free: 9.773 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.2659, allocations: 132.1 kB / 0.9646 GB, free: 9.605 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002413/0.2662, allocations: 226.9 kB / 0.9649 GB, free: 9.344 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2662, allocations: 0 / 0.9649 GB, free: 9.344 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003976/0.2666, allocations: 276.5 kB / 0.9651 GB, free: 9.066 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.2666, allocations: 4 kB / 0.9651 GB, free: 9.062 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.2666, allocations: 4 kB / 0.9651 GB, free: 9.059 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001508/0.2668, allocations: 24.83 kB / 0.9652 GB, free: 9.031 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.267, allocations: 56.3 kB / 0.9652 GB, free: 8.977 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009782/0.2679, allocations: 1.414 MB / 0.9666 GB, free: 7.422 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000164/0.2681, allocations: 31.59 kB / 0.9666 GB, free: 7.391 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.2682, allocations: 11.98 kB / 0.9666 GB, free: 7.379 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.0001464/0.2683, allocations: 173.6 kB / 0.9668 GB, free: 7.199 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.903e-05/0.2684, allocations: 23.8 kB / 0.9668 GB, free: 7.176 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.851e-05/0.2684, allocations: 25.84 kB / 0.9668 GB, free: 7.152 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2684, allocations: 4.062 kB / 0.9669 GB, free: 7.148 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.2684, allocations: 4 kB / 0.9669 GB, free: 7.145 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.2684, allocations: 4.078 kB / 0.9669 GB, free: 7.141 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000811/0.2693, allocations: 0.7063 MB / 0.9675 GB, free: 6.344 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.2693, allocations: 0 / 0.9675 GB, free: 6.344 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.89e-05/0.2694, allocations: 23.98 kB / 0.9676 GB, free: 6.32 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.461e-05/0.2695, allocations: 28.78 kB / 0.9676 GB, free: 6.289 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.2695, allocations: 4 kB / 0.9676 GB, free: 6.285 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009092/0.2704, allocations: 1.422 MB / 0.969 GB, free: 4.719 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.2704, allocations: 4.031 kB / 0.969 GB, free: 4.715 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002995/0.2707, allocations: 317.1 kB / 0.9693 GB, free: 4.367 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 9.585e-05/0.2708, allocations: 116.8 kB / 0.9694 GB, free: 4.234 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.068e-05/0.2708, allocations: 7.938 kB / 0.9694 GB, free: 4.227 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.271, allocations: 15.98 kB / 0.9694 GB, free: 4.211 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.668e-05/0.2711, allocations: 15.92 kB / 0.9694 GB, free: 4.195 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.2711, allocations: 8 kB / 0.9695 GB, free: 4.188 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001646/0.2712, allocations: 190 kB / 0.9696 GB, free: 4.004 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2712, allocations: 4 kB / 0.9696 GB, free: 4 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003824/0.2716, allocations: 71.84 kB / 0.9697 GB, free: 3.93 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.0001042/0.2717, allocations: 111.2 kB / 0.9698 GB, free: 3.812 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004242/0.2722, allocations: 270.8 kB / 0.9701 GB, free: 3.535 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2722, allocations: 0 / 0.9701 GB, free: 3.535 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000199/0.2724, allocations: 174.6 kB / 0.9702 GB, free: 3.352 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004574/0.2729, allocations: 75.12 kB / 0.9703 GB, free: 3.281 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008137/0.2737, allocations: 0.5845 MB / 0.9709 GB, free: 2.645 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.274, allocations: 0.7909 MB / 0.9717 GB, free: 1.828 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.261e-05/0.2741, allocations: 23.44 kB / 0.9717 GB, free: 1.805 MB / 0.7481 GB Notification: Performance of SimCode: time 2.31e-07/0.2741, allocations: 0 / 0.9717 GB, free: 1.805 MB / 0.7481 GB Notification: Performance of Templates: time 0.00572/0.2798, allocations: 4.386 MB / 0.976 GB, free: 13.43 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 -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