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.001483/0.001483, allocations: 106 kB / 15.99 MB, free: 6.355 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.001662/0.001662, allocations: 196.5 kB / 16.91 MB, free: 6.188 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.324/1.324, allocations: 222.9 MB / 240.6 MB, free: 15.46 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.26/2.26, allocations: 390.2 MB / 0.665 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 71.97 kB / 0.8127 GB, free: 33.29 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2415, allocations: 140.4 MB / 0.9498 GB, free: 9.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005811/0.2474, allocations: 3.88 MB / 0.9536 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00285/0.2503, allocations: 1.71 MB / 0.9552 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002786/0.2506, allocations: 7.938 kB / 0.9552 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001402/0.2521, allocations: 478.4 kB / 0.9557 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005879/0.2527, allocations: 203.1 kB / 0.9559 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005656/0.2532, allocations: 195.6 kB / 0.9561 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005972/0.2538, allocations: 470.5 kB / 0.9565 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006348/0.2545, allocations: 409.3 kB / 0.9569 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002767/0.2548, allocations: 203.2 kB / 0.9571 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004197/0.2552, allocations: 227.2 kB / 0.9573 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.111e-05/0.2553, allocations: 28 kB / 0.9574 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004393/0.2557, allocations: 243.4 kB / 0.9576 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001317/0.2559, allocations: 119.7 kB / 0.9577 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001905/0.2561, allocations: 175.2 kB / 0.9579 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004797/0.2565, allocations: 395.1 kB / 0.9582 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.2566, allocations: 0 / 0.9582 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.343e-06/0.2566, allocations: 0 / 0.9582 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.126e-05/0.2566, allocations: 0 / 0.9582 GB, free: 0.5508 MB / 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.001083/0.2577, allocations: 0.6393 MB / 0.9589 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.2577, allocations: 12.03 kB / 0.9589 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009637/0.2587, allocations: 132.4 kB / 0.959 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.2591, allocations: 283.7 kB / 0.9593 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.2591, allocations: 21.03 kB / 0.9593 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.511e-05/0.2592, allocations: 28.38 kB / 0.9593 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000658/0.2598, allocations: 459.9 kB / 0.9598 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.2599, allocations: 7.984 kB / 0.9598 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.566e-05/0.2599, allocations: 12 kB / 0.9598 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.964e-05/0.2599, allocations: 28.55 kB / 0.9598 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004916/0.2604, allocations: 317.9 kB / 0.9601 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00217/0.2626, allocations: 2.196 MB / 0.9623 GB, free: 12.1 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003707/0.263, allocations: 251.8 kB / 0.9625 GB, free: 11.83 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002431/0.2633, allocations: 108.9 kB / 0.9626 GB, free: 11.72 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.2633, allocations: 3.938 kB / 0.9626 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.2633, allocations: 46.53 kB / 0.9626 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=14): time 1.743e-06/0.2633, allocations: 0 / 0.9626 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of matching and sorting (n=14): time 0.0006014/0.2639, allocations: 303.4 kB / 0.9629 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.264, allocations: 55.41 kB / 0.963 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002632/0.2643, allocations: 266.6 kB / 0.9632 GB, free: 11.01 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.2643, allocations: 29.7 kB / 0.9633 GB, free: 10.97 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.2644, allocations: 199.8 kB / 0.9635 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.854e-05/0.2645, allocations: 47.3 kB / 0.9635 GB, free: 10.73 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.348e-05/0.2645, allocations: 53.84 kB / 0.9636 GB, free: 10.66 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.2647, allocations: 342.8 kB / 0.9639 GB, free: 10.32 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.318e-05/0.2648, allocations: 52.44 kB / 0.9639 GB, free: 10.27 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.2649, allocations: 145.7 kB / 0.9641 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002518/0.2652, allocations: 214.9 kB / 0.9643 GB, free: 9.84 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2652, allocations: 0 / 0.9643 GB, free: 9.84 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004168/0.2656, allocations: 272.5 kB / 0.9645 GB, free: 9.566 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.2656, allocations: 8 kB / 0.9645 GB, free: 9.559 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.2656, allocations: 8.062 kB / 0.9646 GB, free: 9.551 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001618/0.2658, allocations: 29.22 kB / 0.9646 GB, free: 9.52 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001827/0.266, allocations: 51.92 kB / 0.9646 GB, free: 9.469 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.2671, allocations: 1.418 MB / 0.966 GB, free: 7.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001807/0.2673, allocations: 31.59 kB / 0.966 GB, free: 7.879 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.2673, allocations: 12 kB / 0.9661 GB, free: 7.867 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.0001647/0.2675, allocations: 171.6 kB / 0.9662 GB, free: 7.691 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.96e-05/0.2675, allocations: 19.81 kB / 0.9662 GB, free: 7.672 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.092e-05/0.2676, allocations: 33.89 kB / 0.9663 GB, free: 7.641 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2676, allocations: 0 / 0.9663 GB, free: 7.641 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.2676, allocations: 0 / 0.9663 GB, free: 7.641 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2676, allocations: 0 / 0.9663 GB, free: 7.641 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008676/0.2685, allocations: 0.7063 MB / 0.967 GB, free: 6.844 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.2685, allocations: 4 kB / 0.967 GB, free: 6.84 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.918e-05/0.2686, allocations: 19.98 kB / 0.967 GB, free: 6.82 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.965e-05/0.2687, allocations: 28.78 kB / 0.967 GB, free: 6.789 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.2687, allocations: 4 kB / 0.967 GB, free: 6.785 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009456/0.2697, allocations: 1.418 MB / 0.9684 GB, free: 5.219 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.2697, allocations: 7.938 kB / 0.9684 GB, free: 5.211 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003217/0.27, allocations: 329.2 kB / 0.9687 GB, free: 4.852 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 9.757e-05/0.2701, allocations: 112.8 kB / 0.9688 GB, free: 4.723 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.2702, allocations: 4 kB / 0.9688 GB, free: 4.719 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.2703, allocations: 11.98 kB / 0.9688 GB, free: 4.707 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.2704, allocations: 19.92 kB / 0.9689 GB, free: 4.688 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.2704, allocations: 4 kB / 0.9689 GB, free: 4.684 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001713/0.2706, allocations: 194 kB / 0.9691 GB, free: 4.496 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2706, allocations: 0 / 0.9691 GB, free: 4.496 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004016/0.271, allocations: 75.84 kB / 0.9691 GB, free: 4.422 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.000115/0.2711, allocations: 105.1 kB / 0.9692 GB, free: 4.312 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004656/0.2716, allocations: 274.8 kB / 0.9695 GB, free: 4.031 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.2716, allocations: 0 / 0.9695 GB, free: 4.031 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002119/0.2718, allocations: 186.5 kB / 0.9697 GB, free: 3.836 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004715/0.2723, allocations: 50.83 kB / 0.9697 GB, free: 3.789 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009598/0.2733, allocations: 0.7046 MB / 0.9704 GB, free: 3.035 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.2736, allocations: 0.7909 MB / 0.9712 GB, free: 2.219 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.659e-05/0.2737, allocations: 19.44 kB / 0.9712 GB, free: 2.199 MB / 0.7481 GB Notification: Performance of SimCode: time 2.01e-07/0.2737, allocations: 0 / 0.9712 GB, free: 2.199 MB / 0.7481 GB Notification: Performance of Templates: time 0.006706/0.2804, allocations: 4.39 MB / 0.9755 GB, free: 13.82 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