Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 112.9 kB / 17.69 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 192 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009843/0.0009844, allocations: 51.62 kB / 302.1 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08281/0.08382, allocations: 49.45 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.005954/0.0898, allocations: 5.043 MB / 356.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002964/0.09278, allocations: 2.086 MB / 358.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.09301, allocations: 16 kB / 358.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002785/0.0958, allocations: 1.404 MB / 360.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001047/0.09686, allocations: 0.5738 MB / 360.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001789/0.09865, allocations: 1.053 MB / 361.7 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007682/0.09943, allocations: 0.7356 MB / 362.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008737/0.1003, allocations: 0.6573 MB / 363.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003618/0.1007, allocations: 330.8 kB / 363.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004294/0.1011, allocations: 434.3 kB / 363.8 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.03e-05/0.1012, allocations: 68 kB / 363.9 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006299/0.1019, allocations: 387.7 kB / 364.3 MB, free: 6.898 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.102, allocations: 171.4 kB / 364.4 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003042/0.1023, allocations: 370.1 kB / 364.8 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.1034, allocations: 1.195 MB / 366 MB, free: 5.168 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1035, allocations: 0 / 366 MB, free: 5.168 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1035, allocations: 0 / 366 MB, free: 5.168 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.1035, allocations: 0 / 366 MB, free: 5.168 MB / 302.1 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.003976/0.1075, allocations: 1.44 MB / 367.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.1075, allocations: 12.03 kB / 367.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002552/0.1101, allocations: 379.6 kB / 367.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002125/0.1103, allocations: 265.1 kB / 368.1 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.442e-05/0.1103, allocations: 58.38 kB / 368.1 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.1105, allocations: 88.31 kB / 368.2 MB, free: 2.852 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.112, allocations: 0.88 MB / 369.1 MB, free: 1.961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.1121, allocations: 7.906 kB / 369.1 MB, free: 1.953 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.939e-05/0.1121, allocations: 32 kB / 369.1 MB, free: 1.922 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.1122, allocations: 20 kB / 369.2 MB, free: 1.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001727/0.1139, allocations: 0.8003 MB / 370 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1337/0.2477, allocations: 2.921 MB / 372.9 MB, free: 23.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.2488, allocations: 1.005 MB / 373.9 MB, free: 22.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000511/0.2493, allocations: 242.3 kB / 374.1 MB, free: 22.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.953e-05/0.2494, allocations: 93.81 kB / 374.2 MB, free: 22.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.664e-05/0.2494, allocations: 40.33 kB / 374.3 MB, free: 22.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.354e-06/0.2494, allocations: 2.094 kB / 374.3 MB, free: 22.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.007346/0.2568, allocations: 2.414 MB / 376.7 MB, free: 21.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.2568, allocations: 87.36 kB / 376.8 MB, free: 21.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002614/0.2571, allocations: 308.9 kB / 377.1 MB, free: 21.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.572e-05/0.2571, allocations: 39.08 kB / 377.1 MB, free: 21.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.2572, allocations: 360.2 kB / 377.5 MB, free: 21.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.2573, allocations: 214.6 kB / 377.7 MB, free: 21.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/0.2575, allocations: 149 kB / 377.8 MB, free: 20.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.829e-05/0.2576, allocations: 351.3 kB / 378.2 MB, free: 20.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007323/0.2584, allocations: 269.4 kB / 378.4 MB, free: 20.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008202/0.2592, allocations: 0.5074 MB / 378.9 MB, free: 20.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001545/0.2607, allocations: 0.8128 MB / 379.7 MB, free: 19.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.2608, allocations: 1.438 kB / 379.7 MB, free: 19.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001977/0.2627, allocations: 0.9048 MB / 380.6 MB, free: 19.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.2628, allocations: 8.375 kB / 380.6 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.2628, allocations: 8.25 kB / 380.7 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002158/0.263, allocations: 68.19 kB / 380.7 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008651/0.2639, allocations: 204.5 kB / 380.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.2652, allocations: 2.872 MB / 383.8 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006178/0.2658, allocations: 67.27 kB / 383.9 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.859e-05/0.2659, allocations: 41.94 kB / 383.9 MB, free: 16.38 MB / 302.1 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 (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.0002243/0.2661, allocations: 211.9 kB / 384.1 MB, free: 16.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.031e-05/0.2662, allocations: 40.05 kB / 384.1 MB, free: 16.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001868/0.2681, allocations: 0.7468 MB / 384.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.2681, allocations: 10.31 kB / 384.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.2681, allocations: 1.344 kB / 384.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.2681, allocations: 3.281 kB / 384.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002629/0.2708, allocations: 1.432 MB / 386.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2708, allocations: 0.5156 kB / 386.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006841/0.2715, allocations: 142.7 kB / 386.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001504/0.2716, allocations: 54.28 kB / 386.5 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.192e-05/0.2717, allocations: 16.33 kB / 386.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/0.273, allocations: 2.847 MB / 389.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.273, allocations: 1.094 kB / 389.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002522/0.2755, allocations: 1.092 MB / 390.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.2757, allocations: 162.6 kB / 390.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.463e-05/0.2758, allocations: 19.5 kB / 390.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005043/0.2763, allocations: 48.56 kB / 390.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.2764, allocations: 46.44 kB / 390.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.905e-05/0.2764, allocations: 21.11 kB / 390.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001854/0.2766, allocations: 205.7 kB / 391 MB, free: 11.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2766, allocations: 3.938 kB / 391 MB, free: 11.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006775/0.2773, allocations: 180.4 kB / 391.2 MB, free: 11.41 MB / 302.1 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 (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.0002064/0.2775, allocations: 155.7 kB / 391.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001936/0.2795, allocations: 0.9144 MB / 392.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2795, allocations: 0 / 392.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008909/0.2804, allocations: 0.5525 MB / 392.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.2808, allocations: 43.44 kB / 392.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002283/0.2831, allocations: 1.23 MB / 394.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/0.2834, allocations: 0.8797 MB / 394.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003591/0.2838, allocations: 94.64 kB / 395 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.2839, allocations: 49.91 kB / 395.1 MB, free: 9.133 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2839, allocations: 0 / 395.1 MB, free: 9.133 MB / 302.1 MB Notification: Performance of Templates: time 0.009801/0.2937, allocations: 6.296 MB / 401.4 MB, free: 6.25 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches