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.001304/0.001304, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.443/1.443, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.49/2.49, allocations: 390.2 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002068, allocations: 63.89 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7667/0.7688, allocations: 140.4 MB / 0.9496 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004946/0.7738, allocations: 3.831 MB / 0.9533 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0026/0.7764, allocations: 1.737 MB / 0.955 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002652/0.7767, allocations: 9.969 kB / 0.955 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.7781, allocations: 494.3 kB / 0.9555 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0006026/0.7787, allocations: 223.8 kB / 0.9557 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005476/0.7793, allocations: 205.6 kB / 0.9559 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005344/0.7798, allocations: 475.3 kB / 0.9564 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005601/0.7804, allocations: 378 kB / 0.9567 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002358/0.7806, allocations: 192.9 kB / 0.9569 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003922/0.781, allocations: 214.5 kB / 0.9571 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.818e-05/0.7811, allocations: 28.19 kB / 0.9571 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004706/0.7816, allocations: 249.1 kB / 0.9574 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.7817, allocations: 121.9 kB / 0.9575 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.7819, allocations: 170.4 kB / 0.9577 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006071/0.7825, allocations: 0.4956 MB / 0.9581 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.7825, allocations: 4 kB / 0.9581 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7826, allocations: 0 / 0.9581 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.493e-05/0.7826, allocations: 1.375 kB / 0.9581 GB, free: 2.742 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.0009522/0.7835, allocations: 0.6229 MB / 0.9588 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.7836, allocations: 9.844 kB / 0.9588 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009176/0.7845, allocations: 137.9 kB / 0.9589 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003571/0.7849, allocations: 281.1 kB / 0.9592 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/0.7849, allocations: 24.77 kB / 0.9592 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.183e-05/0.785, allocations: 26.59 kB / 0.9592 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006436/0.7856, allocations: 470.3 kB / 0.9597 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.7856, allocations: 3.938 kB / 0.9597 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.811e-05/0.7857, allocations: 12.41 kB / 0.9597 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.699e-05/0.7858, allocations: 30.23 kB / 0.9597 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004918/0.7862, allocations: 321.8 kB / 0.96 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002006/0.7883, allocations: 2.192 MB / 0.9621 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003999/0.7887, allocations: 251.3 kB / 0.9624 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002551/0.789, allocations: 117.6 kB / 0.9625 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.789, allocations: 9.219 kB / 0.9625 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.789, allocations: 36.22 kB / 0.9625 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 2.064e-06/0.789, allocations: 0 / 0.9625 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0006512/0.7897, allocations: 302.9 kB / 0.9628 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.7897, allocations: 56.66 kB / 0.9629 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002989/0.79, allocations: 265.9 kB / 0.9631 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.7901, allocations: 27.08 kB / 0.9632 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.7902, allocations: 209.5 kB / 0.9634 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.843e-05/0.7903, allocations: 49.92 kB / 0.9634 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.64e-05/0.7903, allocations: 52.72 kB / 0.9635 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.7905, allocations: 335.3 kB / 0.9638 GB, free: 13.81 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.921e-05/0.7906, allocations: 59.06 kB / 0.9638 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.7907, allocations: 150.6 kB / 0.964 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002683/0.791, allocations: 215.9 kB / 0.9642 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.791, allocations: 1.219 kB / 0.9642 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004634/0.7915, allocations: 265.5 kB / 0.9644 GB, free: 13.31 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.7915, allocations: 7 kB / 0.9644 GB, free: 13.31 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.7915, allocations: 2.375 kB / 0.9645 GB, free: 13.31 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001666/0.7917, allocations: 22.78 kB / 0.9645 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.7919, allocations: 54.19 kB / 0.9645 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/0.793, allocations: 1.419 MB / 0.9659 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002063/0.7933, allocations: 27.16 kB / 0.9659 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.7933, allocations: 13.41 kB / 0.966 GB, free: 11.8 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.0001943/0.7935, allocations: 169.5 kB / 0.9661 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.458e-05/0.7935, allocations: 23.31 kB / 0.9661 GB, free: 11.63 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.99e-05/0.7936, allocations: 29.05 kB / 0.9662 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.7936, allocations: 5.312 kB / 0.9662 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.7936, allocations: 1.344 kB / 0.9662 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.7936, allocations: 0 / 0.9662 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.7947, allocations: 0.7134 MB / 0.9669 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.7947, allocations: 2.156 kB / 0.9669 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.43e-05/0.7948, allocations: 30.23 kB / 0.9669 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001021/0.7949, allocations: 28.38 kB / 0.9669 GB, free: 10.94 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.7949, allocations: 7.094 kB / 0.9669 GB, free: 10.94 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.796, allocations: 1.414 MB / 0.9683 GB, free: 9.48 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.796, allocations: 1.062 kB / 0.9683 GB, free: 9.48 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003676/0.7964, allocations: 317.6 kB / 0.9686 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.7965, allocations: 117.1 kB / 0.9687 GB, free: 9.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.103e-05/0.7965, allocations: 2.812 kB / 0.9687 GB, free: 9.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.7967, allocations: 14.91 kB / 0.9687 GB, free: 9.082 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.713e-05/0.7968, allocations: 18.02 kB / 0.9688 GB, free: 9.07 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.7968, allocations: 9.344 kB / 0.9688 GB, free: 9.066 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000194/0.797, allocations: 191.8 kB / 0.969 GB, free: 8.938 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.797, allocations: 0 / 0.969 GB, free: 8.938 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004931/0.7975, allocations: 76.47 kB / 0.969 GB, free: 8.922 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.000134/0.7976, allocations: 107.7 kB / 0.9691 GB, free: 8.824 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005241/0.7982, allocations: 270.7 kB / 0.9694 GB, free: 8.645 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.7982, allocations: 1.812 kB / 0.9694 GB, free: 8.645 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002472/0.7984, allocations: 184.4 kB / 0.9696 GB, free: 8.496 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005135/0.799, allocations: 58.08 kB / 0.9696 GB, free: 8.469 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.8001, allocations: 0.5403 MB / 0.9701 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004472/0.8005, allocations: 0.7922 MB / 0.9709 GB, free: 7.316 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001714/0.8007, allocations: 44.62 kB / 0.971 GB, free: 7.297 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.112e-05/0.8008, allocations: 20 kB / 0.971 GB, free: 7.289 MB / 0.7325 GB Notification: Performance of SimCode: time 2.214e-06/0.8008, allocations: 0 / 0.971 GB, free: 7.289 MB / 0.7325 GB Notification: Performance of Templates: time 0.006998/0.8078, allocations: 2.688 MB / 0.9736 GB, free: 5.98 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