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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00654/0.00654, allocations: 100.8 kB / 15.73 MB, free: 6.043 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.001437/0.001437, allocations: 190 kB / 16.67 MB, free: 5.977 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.734/2.734, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 60.12 kB / 1.054 GB, free: 7.184 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.353, allocations: 157.4 MB / 1.208 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006823/0.3598, allocations: 3.829 MB / 1.211 GB, free: 5.82 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004547/0.3644, allocations: 1.729 MB / 1.213 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006051/0.365, allocations: 11.94 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002081/0.3671, allocations: 498.1 kB / 1.214 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000972/0.3681, allocations: 214.9 kB / 1.214 GB, free: 3.371 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008647/0.369, allocations: 221.8 kB / 1.214 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0009892/0.37, allocations: 482.4 kB / 1.215 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000876/0.3709, allocations: 357.1 kB / 1.215 GB, free: 2.336 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005664/0.3715, allocations: 195.4 kB / 1.215 GB, free: 2.145 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007646/0.3723, allocations: 211.2 kB / 1.215 GB, free: 1.938 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 9.45e-05/0.3724, allocations: 28 kB / 1.215 GB, free: 1.91 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006196/0.373, allocations: 251.5 kB / 1.215 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.3732, allocations: 123.6 kB / 1.216 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002513/0.3734, allocations: 167.2 kB / 1.216 GB, free: 1.379 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0009011/0.3743, allocations: 0.5023 MB / 1.216 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3744, allocations: 0 / 1.216 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3744, allocations: 4 kB / 1.216 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.988e-05/0.3744, allocations: 0 / 1.216 GB, free: 0.8711 MB / 0.9669 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.001327/0.3757, allocations: 0.6355 MB / 1.217 GB, free: 188 kB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.3758, allocations: 8.625 kB / 1.217 GB, free: 180 kB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001033/0.3768, allocations: 132.3 kB / 1.217 GB, free: 48 kB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004915/0.3773, allocations: 303.6 kB / 1.217 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.3774, allocations: 17.03 kB / 1.217 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.247e-05/0.3774, allocations: 32.36 kB / 1.217 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007137/0.3781, allocations: 467.9 kB / 1.218 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.3782, allocations: 3.938 kB / 1.218 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.774e-05/0.3782, allocations: 12 kB / 1.218 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.115e-05/0.3783, allocations: 28.55 kB / 1.218 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000541/0.3788, allocations: 321.9 kB / 1.218 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002555/0.3814, allocations: 2.173 MB / 1.22 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004271/0.3818, allocations: 259.8 kB / 1.221 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002502/0.3821, allocations: 104.8 kB / 1.221 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.3821, allocations: 0 / 1.221 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.3822, allocations: 34.56 kB / 1.221 GB, free: 12 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.3822, allocations: 3.938 kB / 1.221 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.00067/0.3828, allocations: 303.5 kB / 1.221 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.3829, allocations: 55.41 kB / 1.221 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002905/0.3832, allocations: 266.5 kB / 1.221 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.3832, allocations: 25.7 kB / 1.221 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.3834, allocations: 211.8 kB / 1.221 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.689e-05/0.3834, allocations: 47.3 kB / 1.222 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.368e-05/0.3835, allocations: 49.94 kB / 1.222 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3836, allocations: 334.8 kB / 1.222 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.892e-05/0.3837, allocations: 64.44 kB / 1.222 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.3839, allocations: 140 kB / 1.222 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002691/0.3841, allocations: 229.3 kB / 1.222 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3842, allocations: 0 / 1.222 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004175/0.3846, allocations: 262.1 kB / 1.223 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3846, allocations: 8 kB / 1.223 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3846, allocations: 4 kB / 1.223 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001746/0.3848, allocations: 24.84 kB / 1.223 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.385, allocations: 52 kB / 1.223 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.3861, allocations: 1.422 MB / 1.224 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001818/0.3863, allocations: 27.84 kB / 1.224 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.3864, allocations: 16 kB / 1.224 GB, free: 8.191 MB / 0.9825 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.0001804/0.3865, allocations: 172.1 kB / 1.224 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.436e-05/0.3866, allocations: 23.72 kB / 1.224 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.855e-05/0.3867, allocations: 29.83 kB / 1.224 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3867, allocations: 3.938 kB / 1.224 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3867, allocations: 4 kB / 1.224 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.3867, allocations: 0 / 1.224 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009155/0.3876, allocations: 0.7025 MB / 1.225 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3876, allocations: 0 / 1.225 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.944e-05/0.3877, allocations: 27.92 kB / 1.225 GB, free: 7.137 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.59e-05/0.3878, allocations: 32.97 kB / 1.225 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.3878, allocations: 4 kB / 1.225 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009697/0.3888, allocations: 1.411 MB / 1.226 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3888, allocations: 4.031 kB / 1.226 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003208/0.3891, allocations: 317.1 kB / 1.227 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.3893, allocations: 120.7 kB / 1.227 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.603e-05/0.3893, allocations: 4 kB / 1.227 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.3895, allocations: 8 kB / 1.227 GB, free: 5.051 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.528e-05/0.3895, allocations: 23.92 kB / 1.227 GB, free: 5.027 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.3895, allocations: 4 kB / 1.227 GB, free: 5.023 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001843/0.3897, allocations: 193.9 kB / 1.227 GB, free: 4.832 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3897, allocations: 0 / 1.227 GB, free: 4.832 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003877/0.3901, allocations: 79.75 kB / 1.227 GB, free: 4.754 MB / 0.9825 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.0001273/0.3903, allocations: 103.2 kB / 1.227 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004845/0.3907, allocations: 273.1 kB / 1.228 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3908, allocations: 0 / 1.228 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000216/0.391, allocations: 183.5 kB / 1.228 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004742/0.3915, allocations: 74.02 kB / 1.228 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008705/0.3923, allocations: 0.528 MB / 1.228 GB, free: 3.527 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.3928, allocations: 0.7987 MB / 1.229 GB, free: 2.703 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001361/0.3929, allocations: 38.27 kB / 1.229 GB, free: 2.668 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.658e-05/0.393, allocations: 19.44 kB / 1.229 GB, free: 2.648 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/0.393, allocations: 0 / 1.229 GB, free: 2.648 MB / 0.9825 GB Notification: Performance of Templates: time 0.006787/0.3998, allocations: 2.737 MB / 1.232 GB, free: 15.93 MB / 0.9981 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