Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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) 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(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001557/0.001558, allocations: 111.6 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002088/0.002088, allocations: 212.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.573/2.573, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002283/0.002283, allocations: 59.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4167/0.419, allocations: 50.54 MB / 409.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00729/0.4263, allocations: 2.82 MB / 412.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002821/0.4292, allocations: 0.7789 MB / 413.5 MB, free: 14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003579/0.4296, allocations: 8 kB / 413.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004302/0.4301, allocations: 63.44 kB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006645/0.4308, allocations: 95.17 kB / 413.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006756/0.4315, allocations: 115.8 kB / 413.8 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008639/0.4324, allocations: 386.5 kB / 414.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004246/0.4328, allocations: 134.9 kB / 414.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000572/0.4334, allocations: 159.4 kB / 414.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004007/0.4339, allocations: 167.2 kB / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.434, allocations: 32 kB / 414.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.968e-05/0.4341, allocations: 36 kB / 414.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.4342, allocations: 79.69 kB / 414.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003028/0.4345, allocations: 175.1 kB / 414.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007477/0.4353, allocations: 399.7 kB / 415.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.4353, allocations: 0 / 415.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4354, allocations: 0 / 415.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.742e-05/0.4354, allocations: 0 / 415.3 MB, free: 12.18 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00209/0.4375, allocations: 0.6431 MB / 416 MB, free: 11.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.015e-05/0.4376, allocations: 12.03 kB / 416 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.4377, allocations: 36.56 kB / 416 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006505/0.4384, allocations: 276.5 kB / 416.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.124e-05/0.4385, allocations: 25.03 kB / 416.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.094e-05/0.4386, allocations: 32.38 kB / 416.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.4398, allocations: 298.3 kB / 416.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.4398, allocations: 3.938 kB / 416.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.819e-05/0.4399, allocations: 16 kB / 416.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.014e-05/0.4399, allocations: 8 kB / 416.7 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.4411, allocations: 246.5 kB / 416.9 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003094/0.4442, allocations: 1.116 MB / 418 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007512/0.445, allocations: 158.5 kB / 418.2 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003574/0.4454, allocations: 60.83 kB / 418.2 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.836e-05/0.4454, allocations: 0 / 418.2 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.996e-05/0.4455, allocations: 42.55 kB / 418.3 MB, free: 9.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 2.555e-06/0.4455, allocations: 0 / 418.3 MB, free: 9.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.004074/0.4496, allocations: 0.5875 MB / 418.9 MB, free: 8.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.4497, allocations: 55.41 kB / 418.9 MB, free: 8.352 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005408/0.4503, allocations: 274.6 kB / 419.2 MB, free: 8.074 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.743e-05/0.4503, allocations: 29.7 kB / 419.2 MB, free: 8.039 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002297/0.4506, allocations: 223.5 kB / 419.4 MB, free: 7.816 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.4507, allocations: 74.98 kB / 419.5 MB, free: 7.742 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001926/0.4509, allocations: 69.39 kB / 419.6 MB, free: 7.668 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002231/0.4512, allocations: 338.8 kB / 419.9 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005182/0.4517, allocations: 95.92 kB / 420 MB, free: 7.234 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006245/0.4523, allocations: 184.2 kB / 420.2 MB, free: 7.008 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.4536, allocations: 313.1 kB / 420.5 MB, free: 6.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/0.4536, allocations: 0 / 420.5 MB, free: 6.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001728/0.4553, allocations: 397.3 kB / 420.9 MB, free: 6.262 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/0.4554, allocations: 4 kB / 420.9 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.4554, allocations: 4 kB / 420.9 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004948/0.4559, allocations: 61.67 kB / 420.9 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005967/0.4565, allocations: 75.89 kB / 421 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00346/0.46, allocations: 2.829 MB / 423.8 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005785/0.4606, allocations: 23.98 kB / 423.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.524e-05/0.4607, allocations: 15.98 kB / 423.9 MB, free: 2.961 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003357/0.4611, allocations: 161.6 kB / 424 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.4612, allocations: 23.62 kB / 424.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001272/0.4613, allocations: 38.23 kB / 424.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.4614, allocations: 7.938 kB / 424.1 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.4614, allocations: 0 / 424.1 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.4614, allocations: 0 / 424.1 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006889/0.4621, allocations: 329.4 kB / 424.4 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.445e-06/0.4621, allocations: 3.984 kB / 424.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004279/0.4626, allocations: 35.97 kB / 424.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002913/0.4629, allocations: 57.81 kB / 424.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.038e-05/0.4629, allocations: 8 kB / 424.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003359/0.4663, allocations: 2.826 MB / 427.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.4664, allocations: 7.938 kB / 427.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001352/0.4677, allocations: 372.1 kB / 427.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001587/0.4679, allocations: 112.7 kB / 427.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.346e-05/0.468, allocations: 0 / 427.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004041/0.4684, allocations: 15.98 kB / 427.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.4685, allocations: 19.97 kB / 427.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/0.4686, allocations: 4 kB / 427.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003616/0.4689, allocations: 194 kB / 428.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.748e-06/0.469, allocations: 0 / 428.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007969/0.4698, allocations: 79.94 kB / 428.1 MB, free: 14.31 MB / 350.1 MB 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 (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001813/0.47, allocations: 95.25 kB / 428.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001824/0.4718, allocations: 485 kB / 428.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.4718, allocations: 0 / 428.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009556/0.4728, allocations: 354 kB / 429.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005923/0.4734, allocations: 20.56 kB / 429.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001908/0.4753, allocations: 0.5706 MB / 429.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005577/0.4759, allocations: 0.7714 MB / 430.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.4761, allocations: 19.44 kB / 430.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4761, allocations: 4 kB / 430.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of Templates: time 0.01531/0.4914, allocations: 6.02 MB / 436.5 MB, free: 5.871 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches