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: 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.001415/0.001415, allocations: 102.3 kB / 16.27 MB, free: 5.969 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.001628/0.001628, allocations: 191.4 kB / 17.2 MB, free: 5.594 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.547/1.547, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.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.327/2.327, allocations: 390.3 MB / 0.6653 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 65.36 kB / 0.8132 GB, free: 33.02 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3081, allocations: 140.4 MB / 0.9503 GB, free: 8.914 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.006038/0.3142, allocations: 3.207 MB / 0.9534 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002679/0.3169, allocations: 1.379 MB / 0.9548 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002687/0.3172, allocations: 8 kB / 0.9548 GB, free: 4.293 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001162/0.3184, allocations: 326.7 kB / 0.9551 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0004765/0.319, allocations: 147.2 kB / 0.9552 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004883/0.3195, allocations: 155.6 kB / 0.9554 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005002/0.32, allocations: 322.9 kB / 0.9557 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005247/0.3205, allocations: 255.9 kB / 0.9559 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002903/0.3208, allocations: 143.5 kB / 0.956 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000409/0.3212, allocations: 151.4 kB / 0.9562 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.95e-05/0.3213, allocations: 20 kB / 0.9562 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004267/0.3217, allocations: 167.6 kB / 0.9564 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001211/0.3219, allocations: 79.8 kB / 0.9564 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.322, allocations: 123.4 kB / 0.9566 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006154/0.3227, allocations: 358.8 kB / 0.9569 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3227, allocations: 0 / 0.9569 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.924e-06/0.3227, allocations: 0 / 0.9569 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.681e-05/0.3227, allocations: 0 / 0.9569 GB, free: 2.09 MB / 0.7325 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.001214/0.3239, allocations: 0.5341 MB / 0.9574 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.096e-05/0.324, allocations: 15.97 kB / 0.9574 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007294/0.3247, allocations: 84.58 kB / 0.9575 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003653/0.3251, allocations: 251.9 kB / 0.9578 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.338e-05/0.3252, allocations: 12.81 kB / 0.9578 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.409e-05/0.3252, allocations: 16.38 kB / 0.9578 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005529/0.3258, allocations: 320.6 kB / 0.9581 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.3258, allocations: 0 / 0.9581 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.396e-05/0.3258, allocations: 8 kB / 0.9581 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.84e-05/0.3259, allocations: 16.42 kB / 0.9581 GB, free: 0.7344 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003673/0.3262, allocations: 217.5 kB / 0.9583 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.3278, allocations: 1.505 MB / 0.9598 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004331/0.3283, allocations: 203.7 kB / 0.96 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.909e-05/0.3284, allocations: 44.84 kB / 0.96 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/0.3284, allocations: 0 / 0.96 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.3285, allocations: 30.56 kB / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.3285, allocations: 0 / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of matching and sorting (n=8): time 0.0006251/0.3291, allocations: 271.3 kB / 0.9603 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.3292, allocations: 51.41 kB / 0.9604 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.3294, allocations: 203.8 kB / 0.9606 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.3295, allocations: 25.7 kB / 0.9606 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.3297, allocations: 179.6 kB / 0.9608 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.3297, allocations: 27.64 kB / 0.9608 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.265e-05/0.3298, allocations: 41.61 kB / 0.9608 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001735/0.33, allocations: 334.8 kB / 0.9611 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.3301, allocations: 43.97 kB / 0.9612 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.3303, allocations: 106.7 kB / 0.9613 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.3305, allocations: 172.4 kB / 0.9615 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3305, allocations: 0 / 0.9615 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000417/0.331, allocations: 214 kB / 0.9617 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.398e-05/0.331, allocations: 10.16 kB / 0.9617 GB, free: 12.74 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.331, allocations: 4 kB / 0.9617 GB, free: 12.74 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002406/0.3313, allocations: 28.84 kB / 0.9617 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.3314, allocations: 39.86 kB / 0.9617 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.3328, allocations: 1.425 MB / 0.9631 GB, free: 11.1 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001479/0.333, allocations: 23.75 kB / 0.9632 GB, free: 11.08 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.575e-05/0.333, allocations: 8 kB / 0.9632 GB, free: 11.07 MB / 0.7481 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.0001638/0.3331, allocations: 155.3 kB / 0.9633 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.283e-05/0.3332, allocations: 15.81 kB / 0.9633 GB, free: 10.89 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.673e-05/0.3332, allocations: 25.38 kB / 0.9634 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.3332, allocations: 0 / 0.9634 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3333, allocations: 0 / 0.9634 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3333, allocations: 0 / 0.9634 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006064/0.3339, allocations: 495.2 kB / 0.9638 GB, free: 10.33 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3339, allocations: 0 / 0.9638 GB, free: 10.33 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.156e-05/0.334, allocations: 8 kB / 0.9638 GB, free: 10.32 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.754e-05/0.334, allocations: 24.84 kB / 0.9639 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.3341, allocations: 4 kB / 0.9639 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009224/0.335, allocations: 1.421 MB / 0.9652 GB, free: 8.73 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.335, allocations: 4.031 kB / 0.9652 GB, free: 8.727 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002903/0.3353, allocations: 240.2 kB / 0.9655 GB, free: 8.473 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 7.803e-05/0.3354, allocations: 100.9 kB / 0.9656 GB, free: 8.355 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.3354, allocations: 0 / 0.9656 GB, free: 8.355 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.3355, allocations: 11.98 kB / 0.9656 GB, free: 8.344 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.841e-05/0.3356, allocations: 4 kB / 0.9656 GB, free: 8.34 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.3356, allocations: 0 / 0.9656 GB, free: 8.34 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001282/0.3357, allocations: 153.5 kB / 0.9657 GB, free: 8.191 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3358, allocations: 0 / 0.9657 GB, free: 8.191 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003384/0.3361, allocations: 59.78 kB / 0.9658 GB, free: 8.133 MB / 0.7481 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.0001248/0.3362, allocations: 103.2 kB / 0.9659 GB, free: 8.023 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004571/0.3367, allocations: 231 kB / 0.9661 GB, free: 7.785 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3367, allocations: 0 / 0.9661 GB, free: 7.785 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002019/0.3369, allocations: 166.6 kB / 0.9663 GB, free: 7.609 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004003/0.3373, allocations: 48.55 kB / 0.9663 GB, free: 7.566 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007439/0.3381, allocations: 433.5 kB / 0.9667 GB, free: 7.113 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.3384, allocations: 0.7554 MB / 0.9675 GB, free: 6.332 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.501e-05/0.3385, allocations: 15.44 kB / 0.9675 GB, free: 6.316 MB / 0.7481 GB Notification: Performance of SimCode: time 2.11e-07/0.3385, allocations: 0 / 0.9675 GB, free: 6.316 MB / 0.7481 GB Notification: Performance of Templates: time 0.005169/0.3436, allocations: 3.227 MB / 0.9706 GB, free: 3.094 MB / 0.7481 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