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.001091/0.001091, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001218/0.001218, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2284/0.2284, allocations: 46.11 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 83.86 kB / 417.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1414, allocations: 62.45 MB / 480 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004931/0.1464, allocations: 2.674 MB / 482.7 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.1481, allocations: 0.7906 MB / 483.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003393/0.1485, allocations: 11.88 kB / 483.5 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000327/0.1489, allocations: 71.38 kB / 483.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005279/0.1494, allocations: 111.4 kB / 483.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004391/0.1499, allocations: 107.8 kB / 483.8 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006452/0.1505, allocations: 410.5 kB / 484.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003185/0.1508, allocations: 139.2 kB / 484.3 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002921/0.1511, allocations: 151.4 kB / 484.5 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002739/0.1514, allocations: 167.2 kB / 484.6 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.147e-05/0.1515, allocations: 36 kB / 484.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.653e-05/0.1516, allocations: 32 kB / 484.7 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-05/0.1517, allocations: 83.67 kB / 484.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002086/0.1519, allocations: 187 kB / 485 MB, free: 336 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004193/0.1523, allocations: 418.5 kB / 485.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1523, allocations: 0 / 485.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1523, allocations: 0 / 485.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.1524, allocations: 0 / 485.4 MB, free: 15.91 MB / 366.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.001179/0.1535, allocations: 0.6706 MB / 486 MB, free: 15.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.1536, allocations: 9.109 kB / 486.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.067e-05/0.1537, allocations: 44.38 kB / 486.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003204/0.154, allocations: 282.4 kB / 486.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.154, allocations: 25.38 kB / 486.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.64e-05/0.1541, allocations: 32.38 kB / 486.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006768/0.1548, allocations: 358.2 kB / 486.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1548, allocations: 4 kB / 486.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.261e-05/0.1548, allocations: 12 kB / 486.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.1549, allocations: 11.98 kB / 486.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006081/0.1555, allocations: 266.2 kB / 487.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.1575, allocations: 1.361 MB / 488.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004761/0.158, allocations: 202.4 kB / 488.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000213/0.1582, allocations: 83.5 kB / 488.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.21e-05/0.1582, allocations: 7.984 kB / 488.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.1583, allocations: 34.56 kB / 488.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.1583, allocations: 4 kB / 488.8 MB, free: 12.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007753/0.1591, allocations: 245.4 kB / 489 MB, free: 12.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.934e-05/0.1592, allocations: 132.5 kB / 489.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003357/0.1595, allocations: 337.8 kB / 489.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.1595, allocations: 29.7 kB / 489.5 MB, free: 11.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000166/0.1597, allocations: 247.5 kB / 489.7 MB, free: 11.26 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.822e-05/0.1597, allocations: 47.36 kB / 489.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.294e-05/0.1598, allocations: 57.89 kB / 489.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.16, allocations: 350.7 kB / 490.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002264/0.1602, allocations: 72.64 kB / 490.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002714/0.1605, allocations: 177 kB / 490.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004939/0.161, allocations: 254.9 kB / 490.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.161, allocations: 0 / 490.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006449/0.1617, allocations: 309 kB / 491 MB, free: 9.914 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1617, allocations: 8 kB / 491 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1617, allocations: 0 / 491 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.1617, allocations: 8 kB / 491 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003962/0.1621, allocations: 87.86 kB / 491.1 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.1622, allocations: 7.938 kB / 491.1 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00026/0.1624, allocations: 51.7 kB / 491.1 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.1625, allocations: 12 kB / 491.1 MB, free: 9.742 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001418/0.1626, allocations: 149.7 kB / 491.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.916e-05/0.1627, allocations: 35.61 kB / 491.3 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.589e-05/0.1628, allocations: 34.69 kB / 491.3 MB, free: 9.512 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.778e-06/0.1628, allocations: 4 kB / 491.4 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1628, allocations: 0 / 491.4 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1628, allocations: 3.984 kB / 491.4 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007328/0.1636, allocations: 0.5914 MB / 491.9 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.1636, allocations: 4 kB / 491.9 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/0.1639, allocations: 60.03 kB / 492 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.603e-06/0.1639, allocations: 8 kB / 492 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.1639, allocations: 7.875 kB / 492 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.1639, allocations: 4 kB / 492 MB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.1639, allocations: 4 kB / 492 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005458/0.1645, allocations: 394.6 kB / 492.4 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.729e-05/0.1646, allocations: 112.7 kB / 492.5 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/0.1646, allocations: 7.938 kB / 492.5 MB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.1649, allocations: 19.98 kB / 492.6 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.912e-05/0.1649, allocations: 15.98 kB / 492.6 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.1649, allocations: 7.938 kB / 492.6 MB, free: 8.156 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002266/0.1652, allocations: 239.2 kB / 492.8 MB, free: 7.926 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1652, allocations: 0 / 492.8 MB, free: 7.926 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003998/0.1656, allocations: 75.75 kB / 492.9 MB, free: 7.852 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 (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.0001132/0.1657, allocations: 99.12 kB / 493 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005381/0.1663, allocations: 202.2 kB / 493.2 MB, free: 7.547 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1663, allocations: 0 / 493.2 MB, free: 7.547 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002236/0.1665, allocations: 84.64 kB / 493.3 MB, free: 7.465 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004648/0.167, allocations: 29.38 kB / 493.3 MB, free: 7.438 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009875/0.168, allocations: 0.5612 MB / 493.9 MB, free: 6.836 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.1684, allocations: 0.7753 MB / 494.6 MB, free: 6.035 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.1685, allocations: 25.94 kB / 494.7 MB, free: 6.012 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.922e-05/0.1686, allocations: 19.44 kB / 494.7 MB, free: 5.992 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1686, allocations: 0 / 494.7 MB, free: 5.992 MB / 366.1 MB Notification: Performance of Templates: time 0.005453/0.174, allocations: 1.814 MB / 496.5 MB, free: 4.18 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