Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Magnetic.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_trunk_ModelicaTest.Magnetic.FluxTubes.Sources") translateModel(ModelicaTest.Magnetic.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_trunk_ModelicaTest.Magnetic.FluxTubes.Sources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008979/0.0008977, allocations: 96.98 kB / 17.01 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001079/0.001079, allocations: 194.2 kB / 17.91 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.579/1.579, allocations: 227.7 MB / 246.4 MB, free: 9.809 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2645/0.2645, allocations: 46.18 MB / 344.8 MB, free: 11.31 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003496, allocations: 4.219 kB / 418.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.147, allocations: 63.57 MB / 482.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.002837/0.1499, allocations: 2.253 MB / 484.7 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.1511, allocations: 0.7365 MB / 485.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.1512, allocations: 8 kB / 485.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00018/0.1514, allocations: 51.56 kB / 485.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002506/0.1517, allocations: 95.64 kB / 485.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.1519, allocations: 79.91 kB / 485.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003928/0.1523, allocations: 370.6 kB / 486 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002347/0.1526, allocations: 112.1 kB / 486.1 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.1528, allocations: 123.5 kB / 486.2 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.153, allocations: 151.2 kB / 486.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.549e-05/0.153, allocations: 20 kB / 486.4 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.6e-05/0.1531, allocations: 16 kB / 486.4 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.1532, allocations: 55.77 kB / 486.5 MB, free: 464 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.942e-05/0.1533, allocations: 89.52 kB / 486.5 MB, free: 368 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003827/0.1537, allocations: 315 kB / 486.9 MB, free: 52 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.086e-06/0.1537, allocations: 0 / 486.9 MB, free: 52 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1537, allocations: 0 / 486.9 MB, free: 52 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.1538, allocations: 4 kB / 486.9 MB, free: 48 kB / 350.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.001089/0.1549, allocations: 0.6199 MB / 487.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.951e-05/0.1549, allocations: 17.05 kB / 487.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.078e-05/0.155, allocations: 43.44 kB / 487.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003598/0.1554, allocations: 277.3 kB / 487.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.05e-05/0.1554, allocations: 25 kB / 487.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.687e-05/0.1555, allocations: 32 kB / 487.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006789/0.1562, allocations: 366.7 kB / 488.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.1562, allocations: 7.938 kB / 488.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.853e-05/0.1562, allocations: 8 kB / 488.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.1562, allocations: 8 kB / 488.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006001/0.1568, allocations: 291.9 kB / 488.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.1589, allocations: 1.367 MB / 489.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004838/0.1594, allocations: 206.5 kB / 490.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001996/0.1597, allocations: 91.56 kB / 490.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.1597, allocations: 8 kB / 490.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.1597, allocations: 38.48 kB / 490.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.1597, allocations: 0 / 490.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.000774/0.1605, allocations: 281.2 kB / 490.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.9e-05/0.1606, allocations: 132.5 kB / 490.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00038/0.161, allocations: 333.7 kB / 491 MB, free: 11.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.161, allocations: 25.7 kB / 491 MB, free: 11.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.1612, allocations: 247.5 kB / 491.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.156e-05/0.1613, allocations: 51.34 kB / 491.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.187e-05/0.1613, allocations: 4 kB / 491.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1615, allocations: 346.8 kB / 491.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/0.1617, allocations: 84.5 kB / 491.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002783/0.162, allocations: 180.2 kB / 491.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.1622, allocations: 120 kB / 492 MB, free: 10.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1623, allocations: 0 / 492 MB, free: 10.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006447/0.1629, allocations: 329.5 kB / 492.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.1629, allocations: 4 kB / 492.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.163, allocations: 4 kB / 492.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.163, allocations: 7.938 kB / 492.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003807/0.1634, allocations: 104.1 kB / 492.4 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-05/0.1634, allocations: 15.94 kB / 492.5 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002424/0.1636, allocations: 55.5 kB / 492.5 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.1637, allocations: 16 kB / 492.5 MB, free: 10.01 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001405/0.1638, allocations: 145.8 kB / 492.7 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.375e-05/0.1639, allocations: 35.58 kB / 492.7 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.706e-05/0.164, allocations: 34.41 kB / 492.7 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.164, allocations: 4 kB / 492.7 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.164, allocations: 0 / 492.7 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.164, allocations: 3.984 kB / 492.7 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007355/0.1648, allocations: 0.5915 MB / 493.3 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1648, allocations: 0 / 493.3 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.1651, allocations: 83.97 kB / 493.4 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.1651, allocations: 4 kB / 493.4 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.1651, allocations: 0 / 493.4 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.1651, allocations: 4 kB / 493.4 MB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1651, allocations: 0 / 493.4 MB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005815/0.1657, allocations: 428.9 kB / 493.8 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.37e-05/0.1658, allocations: 104.7 kB / 493.9 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.684e-05/0.1658, allocations: 7.984 kB / 493.9 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.166, allocations: 23.98 kB / 494 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.114e-05/0.1661, allocations: 15.98 kB / 494 MB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.1661, allocations: 7.953 kB / 494 MB, free: 8.398 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002273/0.1664, allocations: 235.2 kB / 494.2 MB, free: 8.172 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1664, allocations: 0 / 494.2 MB, free: 8.172 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003927/0.1668, allocations: 75.75 kB / 494.3 MB, free: 8.098 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001049/0.1669, allocations: 99.66 kB / 494.4 MB, free: 7.988 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005122/0.1674, allocations: 212.1 kB / 494.6 MB, free: 7.781 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1674, allocations: 4 kB / 494.6 MB, free: 7.777 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002179/0.1677, allocations: 88.27 kB / 494.7 MB, free: 7.691 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004359/0.1681, allocations: 29.42 kB / 494.7 MB, free: 7.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.1691, allocations: 0.6666 MB / 495.4 MB, free: 6.957 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.1696, allocations: 0.7755 MB / 496.2 MB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001174/0.1697, allocations: 26.22 kB / 496.2 MB, free: 6.125 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.887e-05/0.1697, allocations: 23.42 kB / 496.2 MB, free: 6.102 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1697, allocations: 0 / 496.2 MB, free: 6.102 MB / 366.1 MB Notification: Performance of Templates: time 0.004977/0.1747, allocations: 1.564 MB / 497.8 MB, free: 4.539 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.sim & ./ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches