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.001388/0.001388, allocations: 105.1 kB / 17.16 MB, free: 6.082 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.001396/0.001396, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.406/1.406, allocations: 222.9 MB / 241.8 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 55.22 kB / 300.6 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1055, allocations: 49.45 MB / 350.1 MB, free: 4.84 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006334/0.1118, allocations: 5.016 MB / 355.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003574/0.1154, allocations: 2.079 MB / 357.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006137/0.1161, allocations: 16 kB / 357.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003072/0.1192, allocations: 1.321 MB / 358.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001516/0.1207, allocations: 0.5172 MB / 359 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002086/0.1228, allocations: 1.034 MB / 360.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001094/0.1239, allocations: 0.6966 MB / 360.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.125, allocations: 0.5974 MB / 361.3 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000557/0.1256, allocations: 318.8 kB / 361.7 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005905/0.1262, allocations: 422.3 kB / 362.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.1263, allocations: 48 kB / 362.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000914/0.1273, allocations: 367.7 kB / 362.5 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.1274, allocations: 151.4 kB / 362.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004082/0.1278, allocations: 362.2 kB / 363 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001067/0.1289, allocations: 0.9078 MB / 363.9 MB, free: 6.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1289, allocations: 3.984 kB / 363.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1289, allocations: 0 / 363.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.649e-05/0.129, allocations: 0 / 363.9 MB, free: 6.961 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.004627/0.1336, allocations: 1.44 MB / 365.3 MB, free: 5.469 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.1337, allocations: 12.03 kB / 365.3 MB, free: 5.457 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002658/0.1363, allocations: 383.6 kB / 365.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000268/0.1366, allocations: 256 kB / 366 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.377e-05/0.1367, allocations: 62.38 kB / 366 MB, free: 4.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.1368, allocations: 84.38 kB / 366.1 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001745/0.1386, allocations: 0.8799 MB / 367 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.258e-05/0.1386, allocations: 11.91 kB / 367 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.231e-05/0.1387, allocations: 28 kB / 367 MB, free: 3.715 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.819e-05/0.1387, allocations: 23.94 kB / 367.1 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001827/0.1406, allocations: 0.8003 MB / 367.9 MB, free: 2.895 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1865/0.3271, allocations: 2.966 MB / 370.8 MB, free: 24.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.3286, allocations: 0.9949 MB / 371.8 MB, free: 23.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005826/0.3292, allocations: 240.4 kB / 372.1 MB, free: 23.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.3293, allocations: 94.38 kB / 372.1 MB, free: 23.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.3293, allocations: 40.5 kB / 372.2 MB, free: 23.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.565e-06/0.3293, allocations: 0 / 372.2 MB, free: 23.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.008638/0.338, allocations: 2.424 MB / 374.6 MB, free: 22.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.3381, allocations: 89.09 kB / 374.7 MB, free: 22.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003574/0.3384, allocations: 302.8 kB / 375 MB, free: 22.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.857e-05/0.3385, allocations: 35.77 kB / 375 MB, free: 22.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001939/0.3387, allocations: 364 kB / 375.4 MB, free: 22.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.3388, allocations: 207.7 kB / 375.6 MB, free: 22.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002434/0.3391, allocations: 151.7 kB / 375.7 MB, free: 22.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.452e-05/0.3392, allocations: 350.4 kB / 376.1 MB, free: 21.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008246/0.34, allocations: 272.1 kB / 376.3 MB, free: 21.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000907/0.3409, allocations: 0.5088 MB / 376.8 MB, free: 21.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001668/0.3426, allocations: 0.8111 MB / 377.7 MB, free: 20.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.3426, allocations: 2.281 kB / 377.7 MB, free: 20.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002177/0.3448, allocations: 0.902 MB / 378.6 MB, free: 20.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.836e-05/0.3448, allocations: 11.77 kB / 378.6 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.3449, allocations: 7.25 kB / 378.6 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002737/0.3451, allocations: 68.67 kB / 378.6 MB, free: 20.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009943/0.3461, allocations: 202.8 kB / 378.8 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001579/0.3477, allocations: 2.664 MB / 381.5 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000755/0.3485, allocations: 63.69 kB / 381.6 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.167e-05/0.3486, allocations: 44.84 kB / 381.6 MB, free: 17.68 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.0003048/0.3489, allocations: 213.9 kB / 381.8 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.186e-05/0.349, allocations: 39.72 kB / 381.9 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00209/0.3511, allocations: 0.7475 MB / 382.6 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.3511, allocations: 6.406 kB / 382.6 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3511, allocations: 1.344 kB / 382.6 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.3511, allocations: 3.047 kB / 382.6 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002986/0.3541, allocations: 1.431 MB / 384.1 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.3541, allocations: 1.125 kB / 384.1 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007235/0.3549, allocations: 131.8 kB / 384.2 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001876/0.3551, allocations: 62.23 kB / 384.2 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.385e-05/0.3551, allocations: 16.23 kB / 384.3 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001425/0.3566, allocations: 2.645 MB / 386.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3566, allocations: 1.125 kB / 386.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002885/0.3595, allocations: 1.087 MB / 388 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/0.3597, allocations: 165.3 kB / 388.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.413e-05/0.3598, allocations: 16.17 kB / 388.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005518/0.3603, allocations: 47.16 kB / 388.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.3605, allocations: 56.84 kB / 388.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.512e-05/0.3606, allocations: 18.78 kB / 388.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002365/0.3608, allocations: 206.6 kB / 388.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3608, allocations: 0 / 388.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008481/0.3617, allocations: 173.1 kB / 388.7 MB, free: 12.92 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.0002972/0.362, allocations: 163.3 kB / 388.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002238/0.3642, allocations: 0.9265 MB / 389.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.3642, allocations: 0 / 389.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.3653, allocations: 0.5503 MB / 390.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005116/0.3658, allocations: 43.23 kB / 390.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00292/0.3687, allocations: 1.586 MB / 391.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000393/0.3691, allocations: 0.8814 MB / 392.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002517/0.3694, allocations: 62.86 kB / 392.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of SimCode: time 5.1e-07/0.3694, allocations: 0 / 392.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of Templates: time 0.01464/0.3841, allocations: 13.07 MB / 405.9 MB, free: 1.488 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 -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