Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00709/0.00709, allocations: 98.56 kB / 15.73 MB, free: 6.059 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.001881/0.001881, allocations: 196 kB / 16.68 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.467/2.467, allocations: 437.1 MB / 0.7106 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 67.89 kB / 1.018 GB, free: 15 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2574, allocations: 151.6 MB / 1.166 GB, free: 7.254 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004962/0.2624, allocations: 3.829 MB / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002328/0.2647, allocations: 1.741 MB / 1.172 GB, free: 1.648 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.2648, allocations: 11.94 kB / 1.172 GB, free: 1.637 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.266, allocations: 0.4903 MB / 1.172 GB, free: 1.145 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000382/0.2664, allocations: 218.9 kB / 1.172 GB, free: 0.9297 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004093/0.2669, allocations: 215.1 kB / 1.173 GB, free: 0.7227 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004597/0.2673, allocations: 466.5 kB / 1.173 GB, free: 272 kB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005005/0.2678, allocations: 369.3 kB / 1.173 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.268, allocations: 191.3 kB / 1.173 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003262/0.2684, allocations: 223.2 kB / 1.174 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.635e-05/0.2684, allocations: 28 kB / 1.174 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003538/0.2688, allocations: 247.4 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.2689, allocations: 127.7 kB / 1.174 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001654/0.2691, allocations: 175.2 kB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005307/0.2696, allocations: 0.4942 MB / 1.175 GB, free: 14.44 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.2696, allocations: 0 / 1.175 GB, free: 14.44 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.083e-06/0.2696, allocations: 0 / 1.175 GB, free: 14.44 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.457e-06/0.2696, allocations: 0 / 1.175 GB, free: 14.44 MB / 0.9356 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.0008571/0.2705, allocations: 0.6388 MB / 1.175 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.2705, allocations: 12.03 kB / 1.175 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.844e-05/0.2706, allocations: 74.66 kB / 1.175 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008153/0.2714, allocations: 136.6 kB / 1.176 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003314/0.2718, allocations: 295.8 kB / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.2718, allocations: 21.03 kB / 1.176 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.112e-05/0.2719, allocations: 32.36 kB / 1.176 GB, free: 13.14 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005889/0.2724, allocations: 463.7 kB / 1.176 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.2725, allocations: 4 kB / 1.176 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/0.2725, allocations: 15.98 kB / 1.176 GB, free: 12.63 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.295e-05/0.2726, allocations: 28.55 kB / 1.176 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004497/0.273, allocations: 321.9 kB / 1.177 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.275, allocations: 2.181 MB / 1.179 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003508/0.2753, allocations: 251.8 kB / 1.179 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002135/0.2755, allocations: 108.8 kB / 1.179 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 8.756e-06/0.2756, allocations: 0 / 1.179 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.2756, allocations: 38.5 kB / 1.179 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 9.82e-07/0.2756, allocations: 4 kB / 1.179 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0005291/0.2761, allocations: 295.7 kB / 1.18 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.2762, allocations: 55.41 kB / 1.18 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002638/0.2765, allocations: 274.5 kB / 1.18 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.2765, allocations: 25.7 kB / 1.18 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.2766, allocations: 212.2 kB / 1.18 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.793e-05/0.2767, allocations: 55.58 kB / 1.18 GB, free: 8.508 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.13e-05/0.2767, allocations: 45.91 kB / 1.18 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.2769, allocations: 342.7 kB / 1.18 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.862e-05/0.277, allocations: 52.53 kB / 1.181 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.2771, allocations: 149.4 kB / 1.181 GB, free: 7.875 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/0.2774, allocations: 214.9 kB / 1.181 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.2774, allocations: 4 kB / 1.181 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003879/0.2778, allocations: 263.3 kB / 1.181 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.2778, allocations: 9.719 kB / 1.181 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.2778, allocations: 7.938 kB / 1.181 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001315/0.278, allocations: 33.16 kB / 1.181 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.2782, allocations: 51.92 kB / 1.181 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/0.2792, allocations: 1.426 MB / 1.183 GB, free: 5.688 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.2793, allocations: 27.78 kB / 1.183 GB, free: 5.66 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.2794, allocations: 8 kB / 1.183 GB, free: 5.652 MB / 0.9356 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.0001419/0.2795, allocations: 169.7 kB / 1.183 GB, free: 5.477 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.68e-05/0.2796, allocations: 27.81 kB / 1.183 GB, free: 5.449 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.817e-05/0.2796, allocations: 33.92 kB / 1.183 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.2796, allocations: 0 / 1.183 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.2796, allocations: 0 / 1.183 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.2796, allocations: 0 / 1.183 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008086/0.2804, allocations: 0.6986 MB / 1.184 GB, free: 4.621 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.2805, allocations: 7.984 kB / 1.184 GB, free: 4.613 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.055e-05/0.2805, allocations: 23.92 kB / 1.184 GB, free: 4.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.275e-05/0.2806, allocations: 28.78 kB / 1.184 GB, free: 4.559 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.2806, allocations: 8 kB / 1.184 GB, free: 4.551 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009456/0.2816, allocations: 1.418 MB / 1.185 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.2816, allocations: 0 / 1.185 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003039/0.2819, allocations: 315.6 kB / 1.185 GB, free: 2.652 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 9.589e-05/0.282, allocations: 120.9 kB / 1.185 GB, free: 2.516 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.282, allocations: 7.984 kB / 1.185 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001494/0.2822, allocations: 12 kB / 1.185 GB, free: 2.496 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.762e-05/0.2822, allocations: 19.86 kB / 1.185 GB, free: 2.477 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.2823, allocations: 8 kB / 1.185 GB, free: 2.469 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001704/0.2824, allocations: 190 kB / 1.186 GB, free: 2.289 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2824, allocations: 0 / 1.186 GB, free: 2.289 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003311/0.2828, allocations: 79.83 kB / 1.186 GB, free: 2.211 MB / 0.9356 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.0006315/0.2834, allocations: 0.8509 MB / 1.187 GB, free: 1.309 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004133/0.2838, allocations: 278.9 kB / 1.187 GB, free: 1.023 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2838, allocations: 4.25 kB / 1.187 GB, free: 1.02 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002135/0.2841, allocations: 182.5 kB / 1.187 GB, free: 0.8281 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.2845, allocations: 66.7 kB / 1.187 GB, free: 0.7656 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002811/0.2873, allocations: 2.708 MB / 1.19 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.2877, allocations: 0.7908 MB / 1.19 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001174/0.2878, allocations: 46.27 kB / 1.191 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.2879, allocations: 83.41 kB / 1.191 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of SimCode: time 2.41e-07/0.2879, allocations: 0 / 1.191 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.425/1.713, allocations: 5.388 MB / 1.196 GB, free: 7.676 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.52/18.24, allocations: 8 kB / 1.196 GB, free: 7.668 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches