Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource",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.001114/0.001114, 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.001173/0.001173, allocations: 194.3 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.333/1.333, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.324/2.324, allocations: 390.2 MB / 0.6647 GB, free: 476 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 64.03 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5876/0.589, allocations: 140.4 MB / 0.9497 GB, free: 9.367 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.004032/0.5931, allocations: 3.216 MB / 0.9529 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00189/0.595, allocations: 1.357 MB / 0.9542 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.5951, allocations: 4.781 kB / 0.9542 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000945/0.5961, allocations: 343.7 kB / 0.9545 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003011/0.5964, allocations: 148.8 kB / 0.9547 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003094/0.5967, allocations: 144.6 kB / 0.9548 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002814/0.597, allocations: 342.5 kB / 0.9551 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000386/0.5974, allocations: 256.9 kB / 0.9554 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.5976, allocations: 136.2 kB / 0.9555 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.5978, allocations: 151 kB / 0.9556 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.913e-05/0.5979, allocations: 20.92 kB / 0.9557 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00027/0.5981, allocations: 173.4 kB / 0.9558 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.653e-05/0.5982, allocations: 79.33 kB / 0.9559 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.5983, allocations: 124.1 kB / 0.956 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003691/0.5987, allocations: 350 kB / 0.9564 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.5987, allocations: 0 / 0.9564 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.363e-06/0.5987, allocations: 0 / 0.9564 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.5988, allocations: 0 / 0.9564 GB, free: 4.398 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007408/0.5995, allocations: 0.5363 MB / 0.9569 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.5995, allocations: 13.88 kB / 0.9569 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.111e-05/0.5996, allocations: 62.11 kB / 0.957 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005561/0.6002, allocations: 82.77 kB / 0.957 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.6004, allocations: 248 kB / 0.9573 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.6004, allocations: 15.28 kB / 0.9573 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.065e-05/0.6005, allocations: 29.92 kB / 0.9573 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004312/0.6009, allocations: 310.6 kB / 0.9576 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.6009, allocations: 0 / 0.9576 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.601, allocations: 7.094 kB / 0.9576 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.304e-05/0.601, allocations: 21.92 kB / 0.9576 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000326/0.6013, allocations: 214.9 kB / 0.9578 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.6025, allocations: 1.497 MB / 0.9593 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003758/0.6029, allocations: 198.9 kB / 0.9595 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.919e-05/0.603, allocations: 46.05 kB / 0.9595 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.603, allocations: 5.094 kB / 0.9595 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.76e-05/0.603, allocations: 35.69 kB / 0.9596 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.213e-06/0.603, allocations: 0 / 0.9596 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0005047/0.6035, allocations: 263.8 kB / 0.9598 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.881e-05/0.6036, allocations: 53.56 kB / 0.9599 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.6037, allocations: 211.4 kB / 0.9601 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.6037, allocations: 26.83 kB / 0.9601 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.962e-05/0.6038, allocations: 177.2 kB / 0.9603 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.6038, allocations: 28.27 kB / 0.9603 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.498e-05/0.6039, allocations: 38.36 kB / 0.9603 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.779e-05/0.604, allocations: 326.1 kB / 0.9606 GB, free: 492 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.52e-05/0.6041, allocations: 44.19 kB / 0.9607 GB, free: 472 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.6042, allocations: 110.6 kB / 0.9608 GB, free: 360 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/0.6044, allocations: 172.9 kB / 0.961 GB, free: 212 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.6044, allocations: 1.062 kB / 0.961 GB, free: 212 kB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003391/0.6047, allocations: 215.6 kB / 0.9612 GB, free: 80 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.6048, allocations: 6.375 kB / 0.9612 GB, free: 80 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.6048, allocations: 6.609 kB / 0.9612 GB, free: 76 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001488/0.6049, allocations: 33.58 kB / 0.9612 GB, free: 52 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.6051, allocations: 36.83 kB / 0.9612 GB, free: 40 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/0.6062, allocations: 1.418 MB / 0.9626 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.6063, allocations: 22.91 kB / 0.9627 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.6064, allocations: 6.312 kB / 0.9627 GB, free: 14.57 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (18): * Single equations (assignments): 17 * 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.0001411/0.6065, allocations: 158.4 kB / 0.9628 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.44e-05/0.6066, allocations: 16.22 kB / 0.9628 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.73e-05/0.6066, allocations: 25.36 kB / 0.9628 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.6066, allocations: 1.094 kB / 0.9629 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.6066, allocations: 1.125 kB / 0.9629 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.6066, allocations: 0 / 0.9629 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006041/0.6072, allocations: 485.3 kB / 0.9633 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.6072, allocations: 5.109 kB / 0.9633 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.635e-05/0.6073, allocations: 8.625 kB / 0.9633 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.484e-05/0.6074, allocations: 27.91 kB / 0.9634 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.6074, allocations: 0 / 0.9634 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009772/0.6084, allocations: 1.432 MB / 0.9648 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.6084, allocations: 0 / 0.9648 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002952/0.6087, allocations: 234.5 kB / 0.965 GB, free: 12.28 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.212e-05/0.6088, allocations: 104.1 kB / 0.9651 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/0.6089, allocations: 1.094 kB / 0.9651 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001329/0.609, allocations: 7.734 kB / 0.9651 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.346e-05/0.609, allocations: 7.562 kB / 0.9651 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/0.6091, allocations: 10.22 kB / 0.9651 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001244/0.6092, allocations: 149.8 kB / 0.9652 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6092, allocations: 0 / 0.9652 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003567/0.6096, allocations: 60.22 kB / 0.9653 GB, free: 12.02 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 6 * 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.0005722/0.6101, allocations: 0.7804 MB / 0.9661 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004337/0.6106, allocations: 236.8 kB / 0.9663 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.6106, allocations: 1.25 kB / 0.9663 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002157/0.6108, allocations: 156.8 kB / 0.9664 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.6112, allocations: 39.89 kB / 0.9665 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002466/0.6137, allocations: 2.143 MB / 0.9686 GB, free: 9.156 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.614, allocations: 0.7559 MB / 0.9693 GB, free: 8.422 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001227/0.6142, allocations: 27.38 kB / 0.9693 GB, free: 8.41 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.483e-05/0.6143, allocations: 58.69 kB / 0.9694 GB, free: 8.359 MB / 0.7325 GB Notification: Performance of SimCode: time 5.51e-07/0.6143, allocations: 0 / 0.9694 GB, free: 8.359 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02442/0.6387, allocations: 3.928 MB / 0.9732 GB, free: 6.391 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.838/9.477, allocations: 13.56 kB / 0.9732 GB, free: 6.379 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource.fmu > Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches