Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources") translateModel(ModelicaTest.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001124, allocations: 96.94 kB / 16.02 MB, free: 84 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.001264/0.001265, allocations: 176.6 kB / 16.91 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.896/1.896, allocations: 205.4 MB / 223.1 MB, free: 5.473 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4874/0.4874, allocations: 43.56 MB / 315 MB, free: 8.891 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005616/0.0005618, allocations: 12 kB / 384.6 MB, free: 7.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1607, allocations: 58.86 MB / 443.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Sources): time 0.002978/0.1638, allocations: 2.294 MB / 445.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.1651, allocations: 0.7724 MB / 446.5 MB, free: 9.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.1652, allocations: 8 kB / 446.5 MB, free: 9.602 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002137/0.1654, allocations: 51.61 kB / 446.6 MB, free: 9.551 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002364/0.1657, allocations: 83.42 kB / 446.6 MB, free: 9.469 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003014/0.166, allocations: 95.92 kB / 446.7 MB, free: 9.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000386/0.1664, allocations: 394.5 kB / 447.1 MB, free: 8.988 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.1666, allocations: 128.1 kB / 447.2 MB, free: 8.859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/0.1668, allocations: 131.4 kB / 447.4 MB, free: 8.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.167, allocations: 151.2 kB / 447.5 MB, free: 8.582 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.525e-05/0.1671, allocations: 20 kB / 447.5 MB, free: 8.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.512e-05/0.1671, allocations: 16 kB / 447.6 MB, free: 8.547 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.749e-05/0.1672, allocations: 55.77 kB / 447.6 MB, free: 8.492 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001627/0.1674, allocations: 196.7 kB / 447.8 MB, free: 8.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003507/0.1677, allocations: 390.4 kB / 448.2 MB, free: 7.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1677, allocations: 0 / 448.2 MB, free: 7.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1678, allocations: 0 / 448.2 MB, free: 7.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1678, allocations: 0 / 448.2 MB, free: 7.91 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0011/0.1689, allocations: 0.6085 MB / 448.8 MB, free: 7.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.1689, allocations: 11.97 kB / 448.8 MB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.764e-05/0.169, allocations: 44.38 kB / 448.8 MB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/0.1693, allocations: 272.7 kB / 449.1 MB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.1694, allocations: 29.38 kB / 449.1 MB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.399e-05/0.1694, allocations: 32.38 kB / 449.2 MB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006821/0.1701, allocations: 382.1 kB / 449.5 MB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1701, allocations: 4 kB / 449.6 MB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.487e-05/0.1702, allocations: 16 kB / 449.6 MB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.1702, allocations: 8 kB / 449.6 MB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006333/0.1708, allocations: 283.8 kB / 449.9 MB, free: 6.129 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002115/0.173, allocations: 1.362 MB / 451.2 MB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004952/0.1735, allocations: 210.6 kB / 451.4 MB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002294/0.1737, allocations: 91.52 kB / 451.5 MB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.1738, allocations: 4 kB / 451.5 MB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.1738, allocations: 38.5 kB / 451.5 MB, free: 4.281 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.703e-06/0.1738, allocations: 4 kB / 451.6 MB, free: 4.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009043/0.1747, allocations: 285.1 kB / 451.8 MB, free: 3.992 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.843e-05/0.1748, allocations: 132.5 kB / 452 MB, free: 3.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003455/0.1752, allocations: 328.3 kB / 452.3 MB, free: 3.504 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.1752, allocations: 33.73 kB / 452.3 MB, free: 3.465 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.1753, allocations: 231.7 kB / 452.5 MB, free: 3.234 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.591e-05/0.1754, allocations: 51.2 kB / 452.6 MB, free: 3.184 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.561e-05/0.1755, allocations: 33.7 kB / 452.6 MB, free: 3.145 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1756, allocations: 342.8 kB / 453 MB, free: 2.801 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000244/0.1759, allocations: 88.5 kB / 453 MB, free: 2.715 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003035/0.1762, allocations: 192.1 kB / 453.2 MB, free: 2.488 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005225/0.1767, allocations: 271.1 kB / 453.5 MB, free: 2.184 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1767, allocations: 0 / 453.5 MB, free: 2.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006724/0.1774, allocations: 329.1 kB / 453.8 MB, free: 1.855 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.1774, allocations: 7.984 kB / 453.8 MB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.1774, allocations: 4 kB / 453.8 MB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.002e-05/0.1775, allocations: 4 kB / 453.8 MB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004212/0.1779, allocations: 103.9 kB / 453.9 MB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.1779, allocations: 7.984 kB / 453.9 MB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000265/0.1782, allocations: 47.67 kB / 454 MB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.298e-05/0.1782, allocations: 12.56 kB / 454 MB, free: 1.672 MB / 382.1 MB 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 (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001747/0.1784, allocations: 157.6 kB / 454.2 MB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.1785, allocations: 27.62 kB / 454.2 MB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.168e-05/0.1786, allocations: 42.39 kB / 454.2 MB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.1786, allocations: 0 / 454.2 MB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.1786, allocations: 4 kB / 454.2 MB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1786, allocations: 0 / 454.2 MB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009683/0.1796, allocations: 0.5953 MB / 454.8 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.1796, allocations: 8.156 kB / 454.8 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002937/0.1799, allocations: 63.94 kB / 454.9 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.1799, allocations: 4 kB / 454.9 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.18, allocations: 7.938 kB / 454.9 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.18, allocations: 4 kB / 454.9 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.18, allocations: 7.938 kB / 454.9 MB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006616/0.1807, allocations: 410.7 kB / 455.3 MB, free: 244 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.1808, allocations: 108.7 kB / 455.4 MB, free: 116 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.514e-05/0.1808, allocations: 11.94 kB / 455.4 MB, free: 104 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.1811, allocations: 27.91 kB / 455.5 MB, free: 76 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.214e-05/0.1811, allocations: 15.92 kB / 455.5 MB, free: 60 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/0.1812, allocations: 4 kB / 455.5 MB, free: 56 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2763/0.4574, allocations: 229.5 kB / 455.7 MB, free: 45.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.52e-07/0.4575, allocations: 0 / 455.7 MB, free: 45.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000613/0.4581, allocations: 68.83 kB / 455.8 MB, free: 45.77 MB / 382.1 MB 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 (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001151/0.4582, allocations: 103.8 kB / 455.9 MB, free: 45.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000588/0.4588, allocations: 214.8 kB / 456.1 MB, free: 45.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4588, allocations: 0.5312 kB / 456.1 MB, free: 45.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000235/0.4591, allocations: 88.89 kB / 456.2 MB, free: 45.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005386/0.4596, allocations: 29.56 kB / 456.2 MB, free: 45.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008247/0.4604, allocations: 0.7117 MB / 456.9 MB, free: 45.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001786/0.4606, allocations: 0.7687 MB / 457.7 MB, free: 44.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001099/0.4608, allocations: 26.62 kB / 457.7 MB, free: 44.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.404e-05/0.4608, allocations: 19.12 kB / 457.7 MB, free: 44.54 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4608, allocations: 0 / 457.7 MB, free: 44.54 MB / 382.1 MB Notification: Performance of Templates: time 0.004298/0.4651, allocations: 1.612 MB / 459.3 MB, free: 44.49 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.sim & ./ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/FluxTubes/Sources/Sources.csv","../files/ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches