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.001553/0.001553, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002014/0.002014, allocations: 194.5 kB / 16.25 MB, free: 6.621 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.47/1.47, allocations: 222.9 MB / 239.9 MB, free: 4.5 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.425/2.425, allocations: 390.2 MB / 0.6643 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00215/0.00215, allocations: 63.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8616/0.8638, allocations: 140.3 MB / 0.9491 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.004642/0.8685, allocations: 3.266 MB / 0.9523 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002029/0.8705, allocations: 1.346 MB / 0.9536 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001469/0.8707, allocations: 8.188 kB / 0.9536 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000956/0.8717, allocations: 323.5 kB / 0.9539 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003325/0.872, allocations: 132.4 kB / 0.954 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003671/0.8724, allocations: 134.5 kB / 0.9542 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003539/0.8728, allocations: 334.2 kB / 0.9545 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004616/0.8732, allocations: 282.8 kB / 0.9547 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001884/0.8734, allocations: 130.6 kB / 0.9549 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002809/0.8737, allocations: 166.1 kB / 0.955 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.867e-05/0.8738, allocations: 23.84 kB / 0.9551 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003345/0.8741, allocations: 168.3 kB / 0.9552 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.602e-05/0.8742, allocations: 83.53 kB / 0.9553 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.8744, allocations: 120.5 kB / 0.9554 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004559/0.8748, allocations: 367.7 kB / 0.9558 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.8749, allocations: 4 kB / 0.9558 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.004e-06/0.8749, allocations: 0 / 0.9558 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.295e-06/0.8749, allocations: 0 / 0.9558 GB, free: 4.133 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.0009245/0.8758, allocations: 0.5352 MB / 0.9563 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.8759, allocations: 9.719 kB / 0.9563 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006186/0.8765, allocations: 84.83 kB / 0.9564 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.8768, allocations: 255.6 kB / 0.9566 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.8768, allocations: 12.22 kB / 0.9566 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.423e-05/0.8769, allocations: 18.25 kB / 0.9567 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005618/0.8774, allocations: 321.9 kB / 0.957 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.8775, allocations: 3.938 kB / 0.957 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.8775, allocations: 7.625 kB / 0.957 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.962e-05/0.8776, allocations: 21.7 kB / 0.957 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003869/0.8779, allocations: 206.7 kB / 0.9572 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.8793, allocations: 1.505 MB / 0.9587 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004152/0.8798, allocations: 203.1 kB / 0.9588 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.883e-05/0.8799, allocations: 41.81 kB / 0.9589 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.8799, allocations: 1.156 kB / 0.9589 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.804e-05/0.8799, allocations: 35.62 kB / 0.9589 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.8799, allocations: 0 / 0.9589 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0005382/0.8805, allocations: 263.9 kB / 0.9592 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.47e-05/0.8805, allocations: 57.22 kB / 0.9592 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000193/0.8807, allocations: 203.6 kB / 0.9594 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.8807, allocations: 26.73 kB / 0.9595 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.808e-05/0.8808, allocations: 185 kB / 0.9596 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.8808, allocations: 24.22 kB / 0.9597 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.285e-05/0.8809, allocations: 42.27 kB / 0.9597 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.593e-05/0.881, allocations: 331 kB / 0.96 GB, free: 272 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.814e-05/0.8811, allocations: 43.84 kB / 0.96 GB, free: 252 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.8812, allocations: 109.1 kB / 0.9602 GB, free: 144 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000217/0.8814, allocations: 168.7 kB / 0.9603 GB, free: 0 / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.8814, allocations: 1.062 kB / 0.9603 GB, free: 0 / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004099/0.8818, allocations: 215.2 kB / 0.9605 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.8819, allocations: 10.14 kB / 0.9605 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.8819, allocations: 2.188 kB / 0.9605 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001846/0.8821, allocations: 31.3 kB / 0.9606 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.8822, allocations: 36.08 kB / 0.9606 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/0.8835, allocations: 1.426 MB / 0.962 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001487/0.8837, allocations: 23.16 kB / 0.962 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.8837, allocations: 10.72 kB / 0.962 GB, free: 14.35 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.0001511/0.8839, allocations: 148.1 kB / 0.9622 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.62e-05/0.8839, allocations: 15.69 kB / 0.9622 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.856e-05/0.884, allocations: 25.83 kB / 0.9622 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.884, allocations: 1.188 kB / 0.9622 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.884, allocations: 0 / 0.9622 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.884, allocations: 5 kB / 0.9622 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006593/0.8847, allocations: 489.8 kB / 0.9627 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.8847, allocations: 0 / 0.9627 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.406e-05/0.8848, allocations: 9.5 kB / 0.9627 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.501e-05/0.8848, allocations: 23.41 kB / 0.9627 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.8849, allocations: 7.938 kB / 0.9627 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.8859, allocations: 1.423 MB / 0.9641 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.8859, allocations: 1.375 kB / 0.9641 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003141/0.8863, allocations: 236.4 kB / 0.9643 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.42e-05/0.8864, allocations: 96.19 kB / 0.9644 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.8864, allocations: 1.344 kB / 0.9644 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.8865, allocations: 16.17 kB / 0.9644 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.533e-05/0.8866, allocations: 4.062 kB / 0.9644 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.8866, allocations: 5.219 kB / 0.9644 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00014/0.8867, allocations: 149.8 kB / 0.9646 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8867, allocations: 0 / 0.9646 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003674/0.8871, allocations: 63.5 kB / 0.9647 GB, free: 11.82 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.0001338/0.8873, allocations: 113.5 kB / 0.9648 GB, free: 11.72 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004986/0.8878, allocations: 229.3 kB / 0.965 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.8878, allocations: 0.9688 kB / 0.965 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000237/0.888, allocations: 165.2 kB / 0.9651 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.8884, allocations: 49.12 kB / 0.9652 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007528/0.8892, allocations: 474.6 kB / 0.9656 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.8896, allocations: 0.7597 MB / 0.9664 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001163/0.8897, allocations: 27.22 kB / 0.9664 GB, free: 10.28 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.8897, allocations: 14.81 kB / 0.9664 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.8897, allocations: 0 / 0.9664 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of Templates: time 0.005368/0.8951, allocations: 1.903 MB / 0.9683 GB, free: 9.34 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/jenkins/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