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.001246/0.001246, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001197/0.001197, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.438/1.438, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 41.12 kB / 301.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08981/0.09084, allocations: 49.45 MB / 350.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006419/0.09731, allocations: 5.044 MB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003564/0.1009, allocations: 2.078 MB / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000504/0.1014, allocations: 16 kB / 357.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00312/0.1046, allocations: 1.399 MB / 359.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001509/0.1061, allocations: 0.5821 MB / 359.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001988/0.1081, allocations: 1.046 MB / 360.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009404/0.1091, allocations: 0.7356 MB / 361.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009096/0.11, allocations: 0.6731 MB / 362.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003807/0.1104, allocations: 334.7 kB / 362.6 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004195/0.1108, allocations: 422.3 kB / 363.1 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.742e-05/0.1109, allocations: 71.98 kB / 363.1 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007618/0.1117, allocations: 383.7 kB / 363.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.1118, allocations: 163.4 kB / 363.7 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002943/0.1121, allocations: 382.1 kB / 364 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001198/0.1133, allocations: 1.172 MB / 365.2 MB, free: 5.867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1133, allocations: 4 kB / 365.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1133, allocations: 0 / 365.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.605e-05/0.1134, allocations: 8 kB / 365.2 MB, free: 5.855 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.004124/0.1175, allocations: 1.448 MB / 366.7 MB, free: 4.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.1175, allocations: 8.031 kB / 366.7 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002545/0.1201, allocations: 383.6 kB / 367 MB, free: 3.977 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.1204, allocations: 257.2 kB / 367.3 MB, free: 3.684 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.97e-05/0.1204, allocations: 62.38 kB / 367.4 MB, free: 3.621 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.1206, allocations: 84.38 kB / 367.4 MB, free: 3.539 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.1222, allocations: 0.8799 MB / 368.3 MB, free: 2.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.634e-05/0.1222, allocations: 3.906 kB / 368.3 MB, free: 2.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.649e-05/0.1223, allocations: 36 kB / 368.4 MB, free: 2.609 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.1223, allocations: 20 kB / 368.4 MB, free: 2.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001758/0.1241, allocations: 0.7964 MB / 369.2 MB, free: 1.793 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1638/0.2879, allocations: 2.95 MB / 372.1 MB, free: 23.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.2893, allocations: 1.004 MB / 373.1 MB, free: 22.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005927/0.2899, allocations: 242.8 kB / 373.4 MB, free: 22.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.061e-05/0.29, allocations: 96.02 kB / 373.5 MB, free: 22.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.29, allocations: 38.66 kB / 373.5 MB, free: 22.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.424e-06/0.29, allocations: 0 / 373.5 MB, free: 22.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.008417/0.2985, allocations: 2.421 MB / 375.9 MB, free: 22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.2985, allocations: 84.72 kB / 376 MB, free: 21.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003585/0.2989, allocations: 302 kB / 376.3 MB, free: 21.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.089e-05/0.299, allocations: 35.89 kB / 376.3 MB, free: 21.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.2992, allocations: 361 kB / 376.7 MB, free: 21.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.2993, allocations: 214.6 kB / 376.9 MB, free: 21.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002181/0.2995, allocations: 150.2 kB / 377 MB, free: 21.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.526e-05/0.2996, allocations: 355.1 kB / 377.4 MB, free: 20.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008286/0.3005, allocations: 273.9 kB / 377.7 MB, free: 20.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008963/0.3014, allocations: 0.5057 MB / 378.2 MB, free: 20.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001674/0.303, allocations: 0.8099 MB / 379 MB, free: 19.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.856e-06/0.3031, allocations: 1.281 kB / 379 MB, free: 19.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002228/0.3053, allocations: 0.9066 MB / 379.9 MB, free: 19.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.3053, allocations: 11.62 kB / 379.9 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.3054, allocations: 7.5 kB / 379.9 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002794/0.3057, allocations: 68.97 kB / 380 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009018/0.3066, allocations: 200.7 kB / 380.2 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/0.3082, allocations: 2.867 MB / 383 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008024/0.309, allocations: 72.7 kB / 383.1 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.352e-05/0.3091, allocations: 35.12 kB / 383.1 MB, free: 16.55 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.0003238/0.3094, allocations: 215.7 kB / 383.3 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.3096, allocations: 45.53 kB / 383.4 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002075/0.3116, allocations: 0.7431 MB / 384.1 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.854e-06/0.3117, allocations: 6.531 kB / 384.1 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3117, allocations: 5.781 kB / 384.1 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.3117, allocations: 8.047 kB / 384.2 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002885/0.3146, allocations: 1.43 MB / 385.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.3146, allocations: 0 / 385.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007123/0.3153, allocations: 132.6 kB / 385.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000185/0.3155, allocations: 62.83 kB / 385.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.409e-05/0.3156, allocations: 15.83 kB / 385.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/0.317, allocations: 2.853 MB / 388.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.317, allocations: 5.125 kB / 388.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002735/0.3197, allocations: 1.091 MB / 389.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002295/0.32, allocations: 163 kB / 389.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.776e-05/0.3201, allocations: 11.83 kB / 389.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005761/0.3206, allocations: 51.08 kB / 390 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.3208, allocations: 43.86 kB / 390 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-05/0.3208, allocations: 22.67 kB / 390 MB, free: 11.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000211/0.3211, allocations: 206.1 kB / 390.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3211, allocations: 0 / 390.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007714/0.3218, allocations: 172.8 kB / 390.4 MB, free: 11.58 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.0002534/0.3221, allocations: 169.7 kB / 390.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002434/0.3245, allocations: 0.9355 MB / 391.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3246, allocations: 0 / 391.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.3257, allocations: 0.552 MB / 392 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.3262, allocations: 53.34 kB / 392.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00284/0.329, allocations: 1.274 MB / 393.4 MB, free: 9.977 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.3294, allocations: 0.8812 MB / 394.3 MB, free: 9.273 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.3297, allocations: 62.58 kB / 394.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3297, allocations: 4 kB / 394.3 MB, free: 9.258 MB / 302.1 MB Notification: Performance of Templates: time 0.01481/0.3445, allocations: 13.08 MB / 407.4 MB, free: 116 kB / 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 -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