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.001563/0.001563, allocations: 100.1 kB / 15.88 MB, free: 12 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.001859/0.001859, allocations: 199.7 kB / 16.79 MB, free: 6.809 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.356/1.356, allocations: 222.9 MB / 240.5 MB, free: 4.621 MB / 190.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.365/2.365, allocations: 390.2 MB / 0.6649 GB, free: 0.6562 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001568, allocations: 63.91 kB / 0.8125 GB, free: 14.9 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.599/0.6005, allocations: 140.4 MB / 0.9496 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004578/0.6052, allocations: 3.883 MB / 0.9534 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002161/0.6074, allocations: 1.727 MB / 0.9551 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.6075, allocations: 9.25 kB / 0.9551 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.00111/0.6086, allocations: 474 kB / 0.9555 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003816/0.609, allocations: 205.2 kB / 0.9557 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004561/0.6095, allocations: 204.1 kB / 0.9559 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005207/0.61, allocations: 0.657 MB / 0.9565 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003571/0.6104, allocations: 236.1 kB / 0.9568 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.6106, allocations: 171.3 kB / 0.9569 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003206/0.6109, allocations: 217.3 kB / 0.9571 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.508e-05/0.611, allocations: 20 kB / 0.9572 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004781/0.6114, allocations: 311.3 kB / 0.9575 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.6116, allocations: 117.9 kB / 0.9576 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001428/0.6117, allocations: 158.5 kB / 0.9577 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003461/0.6121, allocations: 390.4 kB / 0.9581 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.6121, allocations: 1.344 kB / 0.9581 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.593e-06/0.6121, allocations: 0 / 0.9581 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.6121, allocations: 3.938 kB / 0.9581 GB, free: 2.809 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.0008751/0.613, allocations: 0.6349 MB / 0.9587 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.613, allocations: 10.31 kB / 0.9587 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009192/0.6139, allocations: 137.2 kB / 0.9589 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002936/0.6143, allocations: 285 kB / 0.9591 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.6143, allocations: 20.5 kB / 0.9592 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.653e-05/0.6143, allocations: 30.17 kB / 0.9592 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006085/0.6149, allocations: 462.5 kB / 0.9596 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.615, allocations: 1.062 kB / 0.9596 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.416e-05/0.615, allocations: 19.06 kB / 0.9596 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.778e-05/0.6151, allocations: 30.25 kB / 0.9597 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000459/0.6155, allocations: 325.9 kB / 0.96 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001905/0.6174, allocations: 2.193 MB / 0.9621 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000393/0.6178, allocations: 243.1 kB / 0.9624 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002584/0.6181, allocations: 116.8 kB / 0.9625 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.6181, allocations: 1.125 kB / 0.9625 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.6182, allocations: 40.67 kB / 0.9625 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.6182, allocations: 0 / 0.9625 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0006544/0.6188, allocations: 298 kB / 0.9628 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.6189, allocations: 57.09 kB / 0.9628 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003042/0.6192, allocations: 270.3 kB / 0.9631 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.6192, allocations: 26.83 kB / 0.9631 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.6194, allocations: 207.9 kB / 0.9633 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/0.6194, allocations: 48.81 kB / 0.9634 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.024e-05/0.6195, allocations: 52 kB / 0.9634 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.6197, allocations: 335.3 kB / 0.9637 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.6198, allocations: 57.97 kB / 0.9638 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.62, allocations: 141.3 kB / 0.9639 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002641/0.6202, allocations: 229.9 kB / 0.9642 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.6203, allocations: 1.25 kB / 0.9642 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004186/0.6207, allocations: 259.7 kB / 0.9644 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.6207, allocations: 12.75 kB / 0.9644 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.6207, allocations: 3.938 kB / 0.9644 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001577/0.6209, allocations: 21.75 kB / 0.9644 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.6211, allocations: 50.7 kB / 0.9645 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.6221, allocations: 1.321 MB / 0.9658 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.6223, allocations: 28.28 kB / 0.9658 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.6223, allocations: 12.53 kB / 0.9658 GB, free: 11.96 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.0001661/0.6225, allocations: 169.1 kB / 0.966 GB, free: 11.81 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.415e-05/0.6226, allocations: 28.59 kB / 0.966 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.669e-05/0.6226, allocations: 27.3 kB / 0.966 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.6226, allocations: 2.188 kB / 0.966 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.6226, allocations: 1.062 kB / 0.966 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.6227, allocations: 0 / 0.966 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008879/0.6235, allocations: 0.7104 MB / 0.9667 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.175e-06/0.6236, allocations: 1.094 kB / 0.9667 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.898e-05/0.6237, allocations: 22.69 kB / 0.9667 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.037e-05/0.6237, allocations: 20.12 kB / 0.9668 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.6238, allocations: 7.156 kB / 0.9668 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009185/0.6247, allocations: 1.324 MB / 0.9681 GB, free: 9.754 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.6247, allocations: 6.5 kB / 0.9681 GB, free: 9.75 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003347/0.6251, allocations: 313.9 kB / 0.9684 GB, free: 9.484 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.6252, allocations: 121.2 kB / 0.9685 GB, free: 9.359 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.247e-05/0.6252, allocations: 7.469 kB / 0.9685 GB, free: 9.355 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.6254, allocations: 7.094 kB / 0.9685 GB, free: 9.355 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.238e-05/0.6254, allocations: 17.14 kB / 0.9685 GB, free: 9.344 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.6254, allocations: 5.688 kB / 0.9685 GB, free: 9.344 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001857/0.6256, allocations: 190.8 kB / 0.9687 GB, free: 9.215 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6256, allocations: 5.219 kB / 0.9687 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004067/0.6261, allocations: 83.62 kB / 0.9688 GB, free: 9.188 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.0001157/0.6262, allocations: 102.2 kB / 0.9689 GB, free: 9.098 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000441/0.6266, allocations: 269.9 kB / 0.9691 GB, free: 8.914 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.6266, allocations: 1.062 kB / 0.9691 GB, free: 8.914 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002101/0.6269, allocations: 180.8 kB / 0.9693 GB, free: 8.77 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004903/0.6274, allocations: 58.17 kB / 0.9694 GB, free: 8.742 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009961/0.6284, allocations: 0.694 MB / 0.9701 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/0.6287, allocations: 0.7956 MB / 0.9708 GB, free: 7.43 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.86e-05/0.6288, allocations: 25.25 kB / 0.9709 GB, free: 7.418 MB / 0.7325 GB Notification: Performance of SimCode: time 4.11e-07/0.6288, allocations: 0 / 0.9709 GB, free: 7.418 MB / 0.7325 GB Notification: Performance of Templates: time 0.006399/0.6352, allocations: 4.376 MB / 0.9751 GB, free: 5.156 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/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