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.001239/0.001239, allocations: 117.7 kB / 17.7 MB, free: 5.305 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.001257/0.001257, allocations: 191 kB / 18.63 MB, free: 4.375 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.255/1.255, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009366/0.0009366, allocations: 47.86 kB / 302.1 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08552/0.08647, allocations: 49.43 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.005532/0.09203, allocations: 5.04 MB / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002967/0.09502, allocations: 2.078 MB / 358.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002121/0.09525, allocations: 20 kB / 358.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002749/0.09801, allocations: 1.401 MB / 360.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001119/0.09914, allocations: 0.5786 MB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001803/0.1009, allocations: 1.057 MB / 361.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007081/0.1017, allocations: 0.7356 MB / 362.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008285/0.1025, allocations: 0.6572 MB / 363.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003377/0.1029, allocations: 334.8 kB / 363.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004034/0.1033, allocations: 426.3 kB / 363.8 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.362e-05/0.1034, allocations: 68 kB / 363.9 MB, free: 7.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006544/0.104, allocations: 395.6 kB / 364.3 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.1041, allocations: 167.4 kB / 364.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002892/0.1044, allocations: 378.1 kB / 364.8 MB, free: 6.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.1055, allocations: 1.192 MB / 366 MB, free: 5.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1055, allocations: 0 / 366 MB, free: 5.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1055, allocations: 4 kB / 366 MB, free: 5.129 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.006e-06/0.1055, allocations: 0 / 366 MB, free: 5.129 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.003859/0.1094, allocations: 1.436 MB / 367.4 MB, free: 3.645 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.1095, allocations: 8.031 kB / 367.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002474/0.1119, allocations: 391.6 kB / 367.8 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.1121, allocations: 261.1 kB / 368.1 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.594e-05/0.1122, allocations: 62.38 kB / 368.1 MB, free: 2.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.1123, allocations: 84.38 kB / 368.2 MB, free: 2.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.1138, allocations: 0.8761 MB / 369.1 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.1138, allocations: 7.906 kB / 369.1 MB, free: 1.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.431e-05/0.1139, allocations: 32 kB / 369.1 MB, free: 1.887 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.74e-05/0.114, allocations: 20 kB / 369.2 MB, free: 1.867 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001657/0.1156, allocations: 0.7964 MB / 370 MB, free: 1.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1674/0.283, allocations: 2.927 MB / 372.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.2842, allocations: 1.001 MB / 373.9 MB, free: 23.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005418/0.2848, allocations: 242 kB / 374.1 MB, free: 23.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.138e-05/0.2849, allocations: 96.52 kB / 374.2 MB, free: 22.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.2849, allocations: 42.45 kB / 374.3 MB, free: 22.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.665e-06/0.2849, allocations: 0 / 374.3 MB, free: 22.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.007768/0.2927, allocations: 2.412 MB / 376.7 MB, free: 21.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.2928, allocations: 91.67 kB / 376.8 MB, free: 21.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002891/0.2931, allocations: 305.8 kB / 377.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.601e-05/0.2931, allocations: 41.27 kB / 377.1 MB, free: 21.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.2933, allocations: 359 kB / 377.5 MB, free: 21.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.292e-05/0.2934, allocations: 210.9 kB / 377.7 MB, free: 21.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/0.2936, allocations: 149.9 kB / 377.8 MB, free: 21.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.952e-05/0.2936, allocations: 351.5 kB / 378.1 MB, free: 20.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007298/0.2944, allocations: 273.1 kB / 378.4 MB, free: 20.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008209/0.2952, allocations: 0.5076 MB / 378.9 MB, free: 20.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001535/0.2968, allocations: 0.8108 MB / 379.7 MB, free: 19.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.2968, allocations: 2.312 kB / 379.7 MB, free: 19.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001975/0.2987, allocations: 0.8991 MB / 380.6 MB, free: 19.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.2988, allocations: 15.69 kB / 380.6 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.2988, allocations: 9.062 kB / 380.7 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002215/0.299, allocations: 67.28 kB / 380.7 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008626/0.2999, allocations: 202.6 kB / 380.9 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.3013, allocations: 2.867 MB / 383.8 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006464/0.3019, allocations: 61.52 kB / 383.8 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.01e-05/0.302, allocations: 39.3 kB / 383.9 MB, free: 16.44 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.0002414/0.3022, allocations: 223.1 kB / 384.1 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.258e-05/0.3023, allocations: 48.5 kB / 384.2 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001894/0.3042, allocations: 0.7349 MB / 384.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.3042, allocations: 6.844 kB / 384.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3043, allocations: 3.938 kB / 384.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.3043, allocations: 8.422 kB / 384.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002617/0.3069, allocations: 1.433 MB / 386.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.3069, allocations: 0 / 386.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006738/0.3076, allocations: 132.7 kB / 386.5 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001479/0.3077, allocations: 63.09 kB / 386.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.025e-05/0.3078, allocations: 22.73 kB / 386.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001245/0.309, allocations: 2.847 MB / 389.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3091, allocations: 3.938 kB / 389.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002428/0.3115, allocations: 1.092 MB / 390.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001811/0.3117, allocations: 159.6 kB / 390.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.314e-05/0.3118, allocations: 10.56 kB / 390.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004972/0.3123, allocations: 47.48 kB / 390.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.3124, allocations: 51.75 kB / 390.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.199e-05/0.3124, allocations: 21.67 kB / 390.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001912/0.3126, allocations: 209.6 kB / 391 MB, free: 11.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3126, allocations: 0 / 391 MB, free: 11.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007164/0.3134, allocations: 176 kB / 391.2 MB, free: 11.46 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.0002239/0.3136, allocations: 151.8 kB / 391.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001899/0.3155, allocations: 0.9215 MB / 392.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3155, allocations: 0 / 392.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000912/0.3164, allocations: 0.5512 MB / 392.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004114/0.3169, allocations: 45.89 kB / 392.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002418/0.3193, allocations: 1.232 MB / 394.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002665/0.3196, allocations: 0.8893 MB / 394.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003508/0.3199, allocations: 96.61 kB / 395 MB, free: 9.184 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.3201, allocations: 45.48 kB / 395.1 MB, free: 9.176 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3201, allocations: 0 / 395.1 MB, free: 9.176 MB / 302.1 MB Notification: Performance of Templates: time 0.2594/0.5795, allocations: 6.28 MB / 401.4 MB, free: 6.277 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 cvode -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