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.0008932/0.0008933, allocations: 97 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001015/0.001015, allocations: 204.1 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.244/0.244, allocations: 45.91 MB / 344 MB, free: 12.12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002956/0.0002958, allocations: 7.984 kB / 417.9 MB, free: 20.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1513, allocations: 63.46 MB / 481.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.003358/0.1547, allocations: 2.152 MB / 483.5 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001971/0.1567, allocations: 0.7562 MB / 484.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001824/0.1569, allocations: 7.938 kB / 484.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002341/0.1572, allocations: 51.61 kB / 484.3 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002763/0.1575, allocations: 99.78 kB / 484.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002717/0.1577, allocations: 71.92 kB / 484.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003591/0.1581, allocations: 275.4 kB / 484.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002472/0.1584, allocations: 112.4 kB / 484.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001914/0.1586, allocations: 115.6 kB / 485 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.1588, allocations: 147.2 kB / 485.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.151e-05/0.1588, allocations: 20 kB / 485.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.394e-05/0.1589, allocations: 16 kB / 485.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.408e-05/0.1589, allocations: 63.75 kB / 485.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.926e-05/0.159, allocations: 89.45 kB / 485.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003583/0.1594, allocations: 319 kB / 485.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1594, allocations: 0 / 485.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.1594, allocations: 0 / 485.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.1594, allocations: 0 / 485.6 MB, free: 1.109 MB / 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.001057/0.1605, allocations: 0.6199 MB / 486.3 MB, free: 452 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.1606, allocations: 12.03 kB / 486.3 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.146e-05/0.1606, allocations: 43.44 kB / 486.3 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.161, allocations: 273.4 kB / 486.6 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.161, allocations: 25 kB / 486.6 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.389e-05/0.1611, allocations: 32 kB / 486.6 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006799/0.1617, allocations: 366.7 kB / 487 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.1618, allocations: 3.938 kB / 487 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.237e-05/0.1618, allocations: 16 kB / 487 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1618, allocations: 8 kB / 487 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006341/0.1625, allocations: 292.8 kB / 487.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002173/0.1646, allocations: 1.359 MB / 488.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005413/0.1652, allocations: 210.5 kB / 488.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.475e-05/0.1652, allocations: 0 / 488.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.462e-05/0.1653, allocations: 42.69 kB / 488.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.1653, allocations: 0 / 488.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008382/0.1662, allocations: 277.2 kB / 489.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/0.1663, allocations: 136.5 kB / 489.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003726/0.1667, allocations: 341.6 kB / 489.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.1667, allocations: 29.7 kB / 489.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.1669, allocations: 251.4 kB / 489.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.665e-05/0.1669, allocations: 55.25 kB / 490 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.119e-05/0.167, allocations: 4 kB / 490 MB, free: 12.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1671, allocations: 342.8 kB / 490.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002309/0.1673, allocations: 88.5 kB / 490.4 MB, free: 12.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002877/0.1676, allocations: 176.2 kB / 490.6 MB, free: 11.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.1679, allocations: 107.9 kB / 490.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.1679, allocations: 3.953 kB / 490.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006475/0.1686, allocations: 333.1 kB / 491 MB, free: 11.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.1686, allocations: 8 kB / 491 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1686, allocations: 0 / 491 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.1687, allocations: 8 kB / 491 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004423/0.1691, allocations: 107.9 kB / 491.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.1691, allocations: 7.938 kB / 491.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002714/0.1694, allocations: 51.89 kB / 491.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.1694, allocations: 8 kB / 491.2 MB, free: 11.19 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.0001705/0.1696, allocations: 149.8 kB / 491.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.538e-05/0.1697, allocations: 35.58 kB / 491.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.956e-05/0.1698, allocations: 42.39 kB / 491.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.1698, allocations: 0 / 491.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.1698, allocations: 4 kB / 491.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.1698, allocations: 0 / 491.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008753/0.1707, allocations: 0.5915 MB / 492 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1707, allocations: 4 kB / 492 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.171, allocations: 71.88 kB / 492.1 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.171, allocations: 0.7188 kB / 492.1 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.1711, allocations: 12 kB / 492.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.1711, allocations: 7.984 kB / 492.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.1711, allocations: 0 / 492.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007002/0.1718, allocations: 488.8 kB / 492.6 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.216e-05/0.1719, allocations: 112.7 kB / 492.7 MB, free: 9.512 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.962e-05/0.1719, allocations: 4 kB / 492.7 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002238/0.1722, allocations: 23.98 kB / 492.7 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.581e-05/0.1722, allocations: 19.92 kB / 492.8 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-05/0.1723, allocations: 11.94 kB / 492.8 MB, free: 9.453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002469/0.1725, allocations: 231.2 kB / 493 MB, free: 9.234 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1725, allocations: 0 / 493 MB, free: 9.234 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004101/0.173, allocations: 71.75 kB / 493.1 MB, free: 9.164 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.0001361/0.1731, allocations: 103.7 kB / 493.2 MB, free: 9.051 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000586/0.1737, allocations: 218.3 kB / 493.4 MB, free: 8.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1737, allocations: 0 / 493.4 MB, free: 8.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002438/0.174, allocations: 92.58 kB / 493.5 MB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.1743, allocations: 21.38 kB / 493.5 MB, free: 8.727 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.1755, allocations: 0.6665 MB / 494.2 MB, free: 8.023 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004362/0.1759, allocations: 0.7833 MB / 494.9 MB, free: 7.215 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001146/0.176, allocations: 22.12 kB / 495 MB, free: 7.188 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.568e-05/0.1761, allocations: 19.44 kB / 495 MB, free: 7.168 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1761, allocations: 0 / 495 MB, free: 7.168 MB / 366.1 MB Notification: Performance of Templates: time 0.004813/0.1809, allocations: 1.571 MB / 496.5 MB, free: 5.602 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","../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches