Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001142/0.001143, allocations: 198.7 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 226.6 MB / 244.7 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007602/0.0007602, allocations: 96.48 kB / 296.8 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002389/0.0002389, allocations: 4 kB / 356.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2419, allocations: 51.3 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003738/0.2457, allocations: 4.327 MB / 412.4 MB, free: 23.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002922/0.2486, allocations: 1.931 MB / 414.3 MB, free: 21.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002243/0.2489, allocations: 16 kB / 414.3 MB, free: 21.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004592/0.2494, allocations: 227.6 kB / 414.6 MB, free: 21.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007383/0.2501, allocations: 337.7 kB / 414.9 MB, free: 20.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001566/0.2517, allocations: 0.999 MB / 415.9 MB, free: 19.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005898/0.2523, allocations: 0.6768 MB / 416.6 MB, free: 19.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001622/0.2539, allocations: 1.167 MB / 417.7 MB, free: 18.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003016/0.2542, allocations: 274.9 kB / 418 MB, free: 17.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002947/0.2545, allocations: 370.6 kB / 418.4 MB, free: 17.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.809e-05/0.2546, allocations: 35.94 kB / 418.4 MB, free: 17.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006591/0.2553, allocations: 367.7 kB / 418.8 MB, free: 16.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.35e-05/0.2553, allocations: 119.5 kB / 418.9 MB, free: 16.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002167/0.2556, allocations: 340.1 kB / 419.2 MB, free: 16.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006657/0.2562, allocations: 0.9007 MB / 420.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2563, allocations: 0 / 420.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2563, allocations: 0 / 420.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.2563, allocations: 4 kB / 420.1 MB, free: 15.62 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.003399/0.2597, allocations: 1.344 MB / 421.5 MB, free: 14.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.2597, allocations: 8.031 kB / 421.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002159/0.2619, allocations: 387.6 kB / 421.8 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/0.2621, allocations: 248.1 kB / 422.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.494e-05/0.2621, allocations: 74.36 kB / 422.2 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.2622, allocations: 80.38 kB / 422.2 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001359/0.2636, allocations: 0.8878 MB / 423.1 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.606e-05/0.2636, allocations: 4 kB / 423.1 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.385e-05/0.2637, allocations: 28 kB / 423.1 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.2637, allocations: 24 kB / 423.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.2652, allocations: 0.8237 MB / 424 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003438/0.2687, allocations: 3.048 MB / 427 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009296/0.2696, allocations: 1.016 MB / 428.1 MB, free: 7.227 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004414/0.2701, allocations: 254.4 kB / 428.3 MB, free: 6.977 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/0.2702, allocations: 182.7 kB / 428.5 MB, free: 6.762 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.2702, allocations: 39.12 kB / 428.5 MB, free: 6.715 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 3.356e-06/0.2702, allocations: 0 / 428.5 MB, free: 6.715 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.007123/0.2773, allocations: 2.689 MB / 431.2 MB, free: 3.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.2774, allocations: 85.66 kB / 431.3 MB, free: 3.828 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002568/0.2777, allocations: 299.1 kB / 431.6 MB, free: 3.527 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.393e-05/0.2777, allocations: 33.7 kB / 431.6 MB, free: 3.488 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.2779, allocations: 366.6 kB / 432 MB, free: 3.121 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.278, allocations: 212.9 kB / 432.2 MB, free: 2.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.76e-05/0.278, allocations: 16 kB / 432.2 MB, free: 2.895 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.827e-05/0.2781, allocations: 350.8 kB / 432.5 MB, free: 2.543 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006734/0.2788, allocations: 289.8 kB / 432.8 MB, free: 2.262 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007835/0.2796, allocations: 0.5238 MB / 433.4 MB, free: 1.633 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/0.2811, allocations: 0.8544 MB / 434.2 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.2811, allocations: 4 kB / 434.2 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001915/0.283, allocations: 0.9455 MB / 435.2 MB, free: 15.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.283, allocations: 8 kB / 435.2 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.283, allocations: 8 kB / 435.2 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002748/0.2833, allocations: 69.61 kB / 435.2 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000871/0.2842, allocations: 219.7 kB / 435.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.2861, allocations: 2.647 MB / 438.1 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000643/0.2868, allocations: 83.91 kB / 438.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.256e-05/0.2869, allocations: 39.98 kB / 438.2 MB, free: 12.37 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003199/0.2872, allocations: 213.5 kB / 438.4 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.56e-05/0.2873, allocations: 43.47 kB / 438.5 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/0.2892, allocations: 0.7937 MB / 439.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.2893, allocations: 8 kB / 439.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2893, allocations: 0 / 439.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.2893, allocations: 3.984 kB / 439.3 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002663/0.2919, allocations: 1.465 MB / 440.7 MB, free: 9.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.292, allocations: 0 / 440.7 MB, free: 9.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006602/0.2926, allocations: 151.8 kB / 440.9 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001894/0.2928, allocations: 57.61 kB / 441 MB, free: 9.559 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.568e-05/0.2929, allocations: 31.91 kB / 441 MB, free: 9.527 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001804/0.2947, allocations: 2.637 MB / 443.6 MB, free: 6.621 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.2947, allocations: 3.938 kB / 443.6 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/0.2973, allocations: 1.16 MB / 444.8 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002198/0.2975, allocations: 164.7 kB / 444.9 MB, free: 5.258 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.904e-05/0.2976, allocations: 8 kB / 445 MB, free: 5.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004884/0.2981, allocations: 55.95 kB / 445 MB, free: 5.195 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.2982, allocations: 52.48 kB / 445.1 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.971e-05/0.2983, allocations: 23.98 kB / 445.1 MB, free: 5.121 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002125/0.2985, allocations: 199.1 kB / 445.3 MB, free: 4.93 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2985, allocations: 0 / 445.3 MB, free: 4.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006961/0.2992, allocations: 180 kB / 445.5 MB, free: 4.754 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002771/0.2995, allocations: 165.5 kB / 445.6 MB, free: 4.586 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002031/0.3015, allocations: 0.9592 MB / 446.6 MB, free: 3.602 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3015, allocations: 3.938 kB / 446.6 MB, free: 3.598 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001001/0.3025, allocations: 0.5824 MB / 447.2 MB, free: 2.988 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.303, allocations: 44.59 kB / 447.2 MB, free: 2.945 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.3057, allocations: 1.571 MB / 448.8 MB, free: 1.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004321/0.3061, allocations: 0.881 MB / 449.7 MB, free: 448 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002423/0.3064, allocations: 63.39 kB / 449.7 MB, free: 384 kB / 314.7 MB Notification: Performance of SimCode: time 5.11e-07/0.3064, allocations: 4 kB / 449.7 MB, free: 380 kB / 314.7 MB Notification: Performance of Templates: time 0.01494/0.3213, allocations: 13.05 MB / 462.8 MB, free: 3.336 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches