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.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.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource") translateModel(Buildings.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001007, allocations: 98.09 kB / 16.02 MB, free: 76 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.0012/0.0012, allocations: 182.9 kB / 16.92 MB, free: 6.918 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.375/1.375, allocations: 223.3 MB / 241 MB, free: 5.316 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.44/2.44, allocations: 390.9 MB / 0.667 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004339/0.000434, allocations: 8 kB / 0.8166 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.718/0.7185, allocations: 142.4 MB / 0.9557 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.003179/0.7217, allocations: 2.896 MB / 0.9585 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00195/0.7237, allocations: 1.339 MB / 0.9598 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.7238, allocations: 3.562 kB / 0.9598 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001643/0.724, allocations: 41.58 kB / 0.9599 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000377/0.7244, allocations: 134.3 kB / 0.96 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003501/0.7248, allocations: 141.9 kB / 0.9601 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003768/0.7252, allocations: 458.3 kB / 0.9606 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002946/0.7255, allocations: 252.4 kB / 0.9608 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/0.7256, allocations: 107.8 kB / 0.9609 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002564/0.7259, allocations: 147.9 kB / 0.9611 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.856e-05/0.7259, allocations: 11 kB / 0.9611 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002811/0.7262, allocations: 203.7 kB / 0.9613 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.408e-05/0.7263, allocations: 79.28 kB / 0.9613 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.7264, allocations: 135.9 kB / 0.9615 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002811/0.7267, allocations: 268.6 kB / 0.9617 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.7267, allocations: 0 / 0.9617 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.773e-06/0.7268, allocations: 1.031 kB / 0.9617 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.259e-06/0.7268, allocations: 0 / 0.9617 GB, free: 3.086 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.0007224/0.7275, allocations: 0.5085 MB / 0.9622 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.7275, allocations: 9.781 kB / 0.9622 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000582/0.7281, allocations: 82.36 kB / 0.9623 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/0.7284, allocations: 243.2 kB / 0.9625 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.7284, allocations: 20.97 kB / 0.9626 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.771e-05/0.7285, allocations: 24.64 kB / 0.9626 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004877/0.729, allocations: 324.4 kB / 0.9629 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.729, allocations: 1.062 kB / 0.9629 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.11e-05/0.729, allocations: 6.469 kB / 0.9629 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.465e-05/0.7291, allocations: 18.47 kB / 0.9629 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003716/0.7294, allocations: 221.4 kB / 0.9631 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/0.7307, allocations: 1.498 MB / 0.9646 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004001/0.7311, allocations: 208.5 kB / 0.9648 GB, free: 332 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.378e-05/0.7313, allocations: 43.72 kB / 0.9648 GB, free: 308 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.7313, allocations: 1.031 kB / 0.9648 GB, free: 308 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.485e-05/0.7313, allocations: 39.45 kB / 0.9649 GB, free: 260 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.683e-06/0.7313, allocations: 1.438 kB / 0.9649 GB, free: 260 kB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0005264/0.7318, allocations: 269.9 kB / 0.9651 GB, free: 48 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.7319, allocations: 52.62 kB / 0.9652 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/0.7321, allocations: 204.4 kB / 0.9654 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.7321, allocations: 27.02 kB / 0.9654 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.7322, allocations: 181.3 kB / 0.9656 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.507e-05/0.7323, allocations: 31.47 kB / 0.9656 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.48e-05/0.7323, allocations: 18.19 kB / 0.9656 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.7324, allocations: 334.7 kB / 0.9659 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.7326, allocations: 49.75 kB / 0.966 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.7327, allocations: 119 kB / 0.9661 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.733, allocations: 159.7 kB / 0.9663 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.733, allocations: 1.156 kB / 0.9663 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003853/0.7334, allocations: 229.8 kB / 0.9665 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.7334, allocations: 3.562 kB / 0.9665 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.7334, allocations: 3.5 kB / 0.9665 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001647/0.7336, allocations: 31.5 kB / 0.9665 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.7337, allocations: 41.2 kB / 0.9666 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009511/0.7347, allocations: 1.324 MB / 0.9678 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.7348, allocations: 23.3 kB / 0.9679 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.7349, allocations: 6 kB / 0.9679 GB, free: 13.43 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.0001505/0.735, allocations: 152.5 kB / 0.968 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.235e-05/0.7351, allocations: 20.72 kB / 0.968 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.113e-05/0.7351, allocations: 20.83 kB / 0.9681 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.7351, allocations: 1.688 kB / 0.9681 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.7351, allocations: 4 kB / 0.9681 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.7351, allocations: 1.375 kB / 0.9681 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000622/0.7358, allocations: 489.3 kB / 0.9685 GB, free: 12.83 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.7358, allocations: 0 / 0.9685 GB, free: 12.83 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-05/0.7359, allocations: 14.11 kB / 0.9685 GB, free: 12.82 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.81e-05/0.7359, allocations: 27.38 kB / 0.9686 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.736, allocations: 5.281 kB / 0.9686 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009066/0.7369, allocations: 1.322 MB / 0.9699 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.7369, allocations: 96 / 0.9699 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003189/0.7372, allocations: 241.9 kB / 0.9701 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.252e-05/0.7373, allocations: 103.1 kB / 0.9702 GB, free: 11.13 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.067e-05/0.7373, allocations: 5.281 kB / 0.9702 GB, free: 11.13 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.7375, allocations: 10.39 kB / 0.9702 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/0.7375, allocations: 7 kB / 0.9702 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.7376, allocations: 2 kB / 0.9702 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001298/0.7377, allocations: 149.6 kB / 0.9704 GB, free: 11.01 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7377, allocations: 0 / 0.9704 GB, free: 11.01 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003668/0.7381, allocations: 55.75 kB / 0.9704 GB, free: 11 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.0001104/0.7382, allocations: 105.1 kB / 0.9705 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00043/0.7386, allocations: 234.7 kB / 0.9707 GB, free: 10.74 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.7386, allocations: 1.031 kB / 0.9707 GB, free: 10.74 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002139/0.7389, allocations: 167.8 kB / 0.9709 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003866/0.7393, allocations: 34.23 kB / 0.9709 GB, free: 10.58 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007485/0.74, allocations: 0.5322 MB / 0.9715 GB, free: 10.16 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.7403, allocations: 0.7558 MB / 0.9722 GB, free: 9.43 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.408e-05/0.7404, allocations: 16.47 kB / 0.9722 GB, free: 9.422 MB / 0.7325 GB Notification: Performance of SimCode: time 4.71e-07/0.7404, allocations: 4 kB / 0.9722 GB, free: 9.418 MB / 0.7325 GB Notification: Performance of Templates: time 0.005526/0.7459, allocations: 3.192 MB / 0.9753 GB, free: 7.773 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (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 & ./Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/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