Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_11_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.001234/0.001234, allocations: 108 kB / 15.61 MB, free: 152 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.001221/0.001221, allocations: 197.1 kB / 16.53 MB, free: 6.664 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.284/1.284, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.53/2.53, allocations: 469.8 MB / 0.7424 GB, free: 7.457 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00169/0.00169, allocations: 62.8 kB / 0.9086 GB, free: 34.26 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2343, allocations: 159.2 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005413/0.2397, allocations: 3.838 MB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002518/0.2423, allocations: 1.729 MB / 1.07 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.2424, allocations: 8 kB / 1.07 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.2437, allocations: 0.4918 MB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004377/0.2441, allocations: 214.9 kB / 1.07 GB, free: 7.895 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004587/0.2446, allocations: 212.5 kB / 1.07 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004435/0.2451, allocations: 474.4 kB / 1.071 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005094/0.2456, allocations: 369.4 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001833/0.2458, allocations: 191.4 kB / 1.071 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003209/0.2461, allocations: 223.2 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.76e-05/0.2462, allocations: 28 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003582/0.2465, allocations: 239.5 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.2466, allocations: 127.7 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001654/0.2468, allocations: 175.1 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005069/0.2473, allocations: 0.4908 MB / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.217e-06/0.2473, allocations: 0 / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2474, allocations: 0 / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.2474, allocations: 0 / 1.073 GB, free: 5.402 MB / 0.8262 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.0008636/0.2482, allocations: 0.6354 MB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.898e-05/0.2483, allocations: 8.031 kB / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.582e-05/0.2483, allocations: 70.7 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008213/0.2492, allocations: 132.4 kB / 1.073 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003286/0.2495, allocations: 288.2 kB / 1.074 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.2495, allocations: 25.03 kB / 1.074 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.746e-05/0.2496, allocations: 24.38 kB / 1.074 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005993/0.2502, allocations: 463.7 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.2502, allocations: 0 / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.199e-05/0.2502, allocations: 12 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-05/0.2503, allocations: 32.53 kB / 1.074 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004659/0.2508, allocations: 325.9 kB / 1.075 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.2528, allocations: 2.185 MB / 1.077 GB, free: 0.8867 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000341/0.2531, allocations: 251.8 kB / 1.077 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002169/0.2534, allocations: 109 kB / 1.077 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/0.2534, allocations: 8 kB / 1.077 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.2534, allocations: 38.55 kB / 1.077 GB, free: 460 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.162e-06/0.2534, allocations: 0 / 1.077 GB, free: 460 kB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0005324/0.254, allocations: 301.9 kB / 1.077 GB, free: 132 kB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/0.254, allocations: 51.41 kB / 1.077 GB, free: 68 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002708/0.2543, allocations: 270.5 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.2543, allocations: 29.7 kB / 1.078 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.2544, allocations: 203.9 kB / 1.078 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.783e-05/0.2545, allocations: 59.14 kB / 1.078 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.165e-05/0.2545, allocations: 45.94 kB / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.2547, allocations: 338.8 kB / 1.078 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.277e-05/0.2548, allocations: 56.44 kB / 1.078 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.2549, allocations: 141.2 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002515/0.2552, allocations: 224.2 kB / 1.079 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2552, allocations: 0 / 1.079 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003896/0.2556, allocations: 269.9 kB / 1.079 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.2556, allocations: 4 kB / 1.079 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.2556, allocations: 8 kB / 1.079 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001317/0.2558, allocations: 28.84 kB / 1.079 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/0.256, allocations: 48.23 kB / 1.079 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/0.257, allocations: 1.422 MB / 1.08 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.2571, allocations: 27.69 kB / 1.08 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.2572, allocations: 12 kB / 1.081 GB, free: 12.66 MB / 0.8419 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.0001514/0.2573, allocations: 181.6 kB / 1.081 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.689e-05/0.2574, allocations: 23.72 kB / 1.081 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.052e-05/0.2574, allocations: 21.84 kB / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.2574, allocations: 7.984 kB / 1.081 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-06/0.2574, allocations: 4.062 kB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.2574, allocations: 0 / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008218/0.2583, allocations: 0.7025 MB / 1.081 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2583, allocations: 0 / 1.081 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.284e-05/0.2584, allocations: 23.98 kB / 1.081 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.642e-05/0.2585, allocations: 28.78 kB / 1.081 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.2585, allocations: 7.938 kB / 1.081 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009825/0.2595, allocations: 1.41 MB / 1.083 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2595, allocations: 12.12 kB / 1.083 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/0.2598, allocations: 322.9 kB / 1.083 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.2599, allocations: 116.8 kB / 1.083 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.778e-05/0.2599, allocations: 4 kB / 1.083 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.2601, allocations: 15.98 kB / 1.083 GB, free: 9.492 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.369e-05/0.2601, allocations: 11.92 kB / 1.083 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.2601, allocations: 4 kB / 1.083 GB, free: 9.477 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001732/0.2603, allocations: 194 kB / 1.084 GB, free: 9.285 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2603, allocations: 7.938 kB / 1.084 GB, free: 9.277 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000336/0.2607, allocations: 79.75 kB / 1.084 GB, free: 9.199 MB / 0.8419 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.0005788/0.2613, allocations: 0.8507 MB / 1.084 GB, free: 8.297 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004067/0.2617, allocations: 277 kB / 1.085 GB, free: 8.016 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.2617, allocations: 4 kB / 1.085 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001989/0.2619, allocations: 178.5 kB / 1.085 GB, free: 7.824 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004065/0.2623, allocations: 61.14 kB / 1.085 GB, free: 7.766 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002815/0.2651, allocations: 2.716 MB / 1.088 GB, free: 4.859 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.2655, allocations: 0.8024 MB / 1.088 GB, free: 4.031 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001296/0.2657, allocations: 42.25 kB / 1.088 GB, free: 3.992 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.2658, allocations: 83.41 kB / 1.088 GB, free: 3.914 MB / 0.8419 GB Notification: Performance of SimCode: time 2.61e-07/0.2658, allocations: 8 kB / 1.088 GB, free: 3.906 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.41/3.676, allocations: 5.264 MB / 1.094 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.46/19.14, allocations: 9.469 kB / 1.094 GB, free: 14.75 MB / 0.8575 GB (rm -f Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_11_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches