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.00767/0.00767, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.00176/0.00176, allocations: 199.5 kB / 16.68 MB, free: 5.969 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.352 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.627/2.627, allocations: 437 MB / 0.7105 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 56.09 kB / 1.018 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.2692, allocations: 151.6 MB / 1.166 GB, free: 7.332 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.00521/0.2744, allocations: 3.819 MB / 1.17 GB, free: 3.488 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00263/0.2771, allocations: 1.745 MB / 1.172 GB, free: 1.734 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002172/0.2773, allocations: 8 kB / 1.172 GB, free: 1.727 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.2787, allocations: 0.4935 MB / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000533/0.2792, allocations: 222.9 kB / 1.172 GB, free: 1.016 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005302/0.2798, allocations: 211.5 kB / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0005308/0.2803, allocations: 474.4 kB / 1.173 GB, free: 352 kB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005517/0.2809, allocations: 361.4 kB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002533/0.2811, allocations: 199.2 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003844/0.2815, allocations: 211.2 kB / 1.174 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.814e-05/0.2816, allocations: 28 kB / 1.174 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004055/0.282, allocations: 255.4 kB / 1.174 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.2821, allocations: 127.7 kB / 1.174 GB, free: 15.19 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001699/0.2823, allocations: 171.1 kB / 1.174 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006069/0.2829, allocations: 0.4982 MB / 1.175 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2829, allocations: 0 / 1.175 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.263e-06/0.2829, allocations: 0 / 1.175 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.28e-05/0.283, allocations: 0 / 1.175 GB, free: 14.52 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.001024/0.284, allocations: 0.6465 MB / 1.175 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.284, allocations: 16.02 kB / 1.175 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.926e-05/0.2841, allocations: 62.73 kB / 1.175 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001027/0.2852, allocations: 132.6 kB / 1.176 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005214/0.2857, allocations: 299.8 kB / 1.176 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.2857, allocations: 21.03 kB / 1.176 GB, free: 13.26 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.075e-05/0.2858, allocations: 32.36 kB / 1.176 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007214/0.2865, allocations: 463.7 kB / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.606e-05/0.2866, allocations: 7.938 kB / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.152e-05/0.2866, allocations: 12 kB / 1.176 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.384e-05/0.2867, allocations: 28.55 kB / 1.176 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005396/0.2872, allocations: 321.9 kB / 1.177 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002487/0.2897, allocations: 2.178 MB / 1.179 GB, free: 9.984 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003581/0.2901, allocations: 255.8 kB / 1.179 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002206/0.2903, allocations: 108.8 kB / 1.179 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.327e-06/0.2903, allocations: 0 / 1.179 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.2904, allocations: 30.56 kB / 1.179 GB, free: 9.559 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.2904, allocations: 0 / 1.179 GB, free: 9.559 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0005726/0.2909, allocations: 311.6 kB / 1.179 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.291, allocations: 55.41 kB / 1.18 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002735/0.2913, allocations: 266.5 kB / 1.18 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.2913, allocations: 29.8 kB / 1.18 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.2914, allocations: 212.2 kB / 1.18 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.88e-05/0.2915, allocations: 55.56 kB / 1.18 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.027e-05/0.2915, allocations: 49.89 kB / 1.18 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.2917, allocations: 342.8 kB / 1.18 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.284e-05/0.2918, allocations: 56.44 kB / 1.18 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.2919, allocations: 141.4 kB / 1.181 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002567/0.2922, allocations: 218.5 kB / 1.181 GB, free: 7.707 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.2922, allocations: 4 kB / 1.181 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004091/0.2926, allocations: 270.1 kB / 1.181 GB, free: 7.43 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.2926, allocations: 8 kB / 1.181 GB, free: 7.422 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.2926, allocations: 4 kB / 1.181 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001515/0.2928, allocations: 24.84 kB / 1.181 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.293, allocations: 51.91 kB / 1.181 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/0.2941, allocations: 1.422 MB / 1.183 GB, free: 5.777 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001747/0.2943, allocations: 36 kB / 1.183 GB, free: 5.742 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.2943, allocations: 12 kB / 1.183 GB, free: 5.73 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.0001642/0.2945, allocations: 165.7 kB / 1.183 GB, free: 5.559 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.168e-05/0.2945, allocations: 27.81 kB / 1.183 GB, free: 5.531 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.949e-05/0.2946, allocations: 29.83 kB / 1.183 GB, free: 5.496 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.2946, allocations: 0 / 1.183 GB, free: 5.496 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2946, allocations: 0 / 1.183 GB, free: 5.496 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2946, allocations: 0 / 1.183 GB, free: 5.496 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008789/0.2955, allocations: 0.7025 MB / 1.184 GB, free: 4.703 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.2955, allocations: 4 kB / 1.184 GB, free: 4.699 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.866e-05/0.2956, allocations: 24.17 kB / 1.184 GB, free: 4.676 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.062e-05/0.2957, allocations: 32.72 kB / 1.184 GB, free: 4.641 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.2957, allocations: 8 kB / 1.184 GB, free: 4.633 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009705/0.2967, allocations: 1.418 MB / 1.185 GB, free: 3.078 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2967, allocations: 0 / 1.185 GB, free: 3.078 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003155/0.297, allocations: 317.3 kB / 1.185 GB, free: 2.73 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.2972, allocations: 116.9 kB / 1.185 GB, free: 2.598 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.2972, allocations: 4 kB / 1.185 GB, free: 2.594 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.2974, allocations: 16 kB / 1.185 GB, free: 2.578 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.096e-05/0.2974, allocations: 15.92 kB / 1.185 GB, free: 2.562 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-06/0.2974, allocations: 8.094 kB / 1.185 GB, free: 2.555 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001721/0.2976, allocations: 193.9 kB / 1.186 GB, free: 2.367 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2976, allocations: 0 / 1.186 GB, free: 2.367 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003704/0.298, allocations: 75.83 kB / 1.186 GB, free: 2.293 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.0005593/0.2985, allocations: 0.86 MB / 1.187 GB, free: 1.383 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004239/0.299, allocations: 274.4 kB / 1.187 GB, free: 1.102 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.299, allocations: 3.938 kB / 1.187 GB, free: 1.098 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002078/0.2992, allocations: 191.6 kB / 1.187 GB, free: 0.8984 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000452/0.2997, allocations: 56.03 kB / 1.187 GB, free: 0.8477 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003038/0.3027, allocations: 2.718 MB / 1.19 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003533/0.3031, allocations: 0.7909 MB / 1.19 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001372/0.3032, allocations: 42.27 kB / 1.19 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.3033, allocations: 83.41 kB / 1.191 GB, free: 13 MB / 0.9512 GB Notification: Performance of SimCode: time 2.3e-07/0.3033, allocations: 0 / 1.191 GB, free: 13 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02593/0.3293, allocations: 5.388 MB / 1.196 GB, free: 7.754 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.287/9.616, allocations: 0 / 1.196 GB, free: 7.754 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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