Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.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.001096/0.001096, allocations: 112.1 kB / 17.29 MB, free: 6.207 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.001201/0.001201, allocations: 197.3 kB / 18.21 MB, free: 5.281 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.308/1.308, allocations: 222.9 MB / 241.9 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 51.47 kB / 300.8 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08588/0.08696, allocations: 49.45 MB / 350.2 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003912/0.09092, allocations: 2.826 MB / 353.1 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.09205, allocations: 0.7555 MB / 353.8 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.09219, allocations: 8 kB / 353.8 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001932/0.09239, allocations: 43.62 kB / 353.9 MB, free: 1 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002358/0.09265, allocations: 79.44 kB / 354 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.09289, allocations: 91.92 kB / 354 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003658/0.09327, allocations: 386.5 kB / 354.4 MB, free: 464 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/0.09348, allocations: 126.9 kB / 354.5 MB, free: 336 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.09369, allocations: 151.4 kB / 354.7 MB, free: 184 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.09389, allocations: 179.2 kB / 354.9 MB, free: 4 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.615e-05/0.09398, allocations: 32.05 kB / 354.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.913e-05/0.09403, allocations: 32 kB / 354.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.523e-05/0.09413, allocations: 75.66 kB / 355 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001365/0.09427, allocations: 171.1 kB / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002836/0.09456, allocations: 307.4 kB / 355.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.09457, allocations: 0 / 355.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09458, allocations: 0 / 355.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.09459, allocations: 0 / 355.5 MB, free: 15.4 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001142/0.09574, allocations: 0.6432 MB / 356.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.09578, allocations: 11.89 kB / 356.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.115e-05/0.09585, allocations: 36.56 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.09615, allocations: 268.3 kB / 356.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.975e-05/0.09619, allocations: 32.97 kB / 356.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.526e-05/0.09625, allocations: 28.38 kB / 356.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006046/0.09686, allocations: 294.3 kB / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.09689, allocations: 0 / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.09692, allocations: 12 kB / 356.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.09694, allocations: 8 kB / 356.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006208/0.09756, allocations: 254.5 kB / 357 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.09926, allocations: 1.116 MB / 358.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003772/0.09965, allocations: 156.7 kB / 358.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/0.09985, allocations: 72.81 kB / 358.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.09989, allocations: 3.984 kB / 358.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.09992, allocations: 34.56 kB / 358.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.383e-06/0.09992, allocations: 0 / 358.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.002228/0.1022, allocations: 0.5863 MB / 359 MB, free: 11.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.1022, allocations: 55.41 kB / 359.1 MB, free: 11.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.1025, allocations: 274.4 kB / 359.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.1025, allocations: 25.7 kB / 359.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002422/0.1028, allocations: 227.5 kB / 359.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.583e-05/0.1028, allocations: 70.91 kB / 359.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.9e-05/0.1029, allocations: 69.59 kB / 359.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1031, allocations: 338.8 kB / 360 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002778/0.1034, allocations: 87.94 kB / 360.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003642/0.1037, allocations: 192.2 kB / 360.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006054/0.1044, allocations: 309.1 kB / 360.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1044, allocations: 0 / 360.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008141/0.1052, allocations: 393.3 kB / 361 MB, free: 9.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.1052, allocations: 4 kB / 361 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.1052, allocations: 4 kB / 361 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002529/0.1055, allocations: 61.67 kB / 361.1 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003249/0.1058, allocations: 75.83 kB / 361.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002117/0.1079, allocations: 2.829 MB / 364 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/0.1082, allocations: 27.97 kB / 364 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.1083, allocations: 12 kB / 364 MB, free: 6.199 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0001672/0.1085, allocations: 161.7 kB / 364.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.895e-05/0.1085, allocations: 27.66 kB / 364.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.896e-05/0.1086, allocations: 38.17 kB / 364.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1086, allocations: 0 / 364.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1086, allocations: 4 kB / 364.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.1086, allocations: 0 / 364.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004035/0.109, allocations: 329.4 kB / 364.6 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.109, allocations: 0 / 364.6 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002146/0.1092, allocations: 43.97 kB / 364.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001522/0.1094, allocations: 49.69 kB / 364.6 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.1094, allocations: 3.984 kB / 364.7 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001986/0.1114, allocations: 2.829 MB / 367.5 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.1114, allocations: 8.047 kB / 367.5 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007388/0.1122, allocations: 366.2 kB / 367.8 MB, free: 2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.997e-05/0.1123, allocations: 108.8 kB / 368 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.1123, allocations: 4 kB / 368 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.1125, allocations: 15.98 kB / 368 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.846e-05/0.1126, allocations: 19.97 kB / 368 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.1127, allocations: 8 kB / 368 MB, free: 1.828 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.1129, allocations: 193.9 kB / 368.2 MB, free: 1.637 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1129, allocations: 0 / 368.2 MB, free: 1.637 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003965/0.1133, allocations: 72 kB / 368.3 MB, free: 1.566 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.0001226/0.1134, allocations: 107.2 kB / 368.4 MB, free: 1.453 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001003/0.1144, allocations: 490.6 kB / 368.8 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1144, allocations: 4 kB / 368.8 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004901/0.1149, allocations: 341.2 kB / 369.2 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004007/0.1153, allocations: 29.38 kB / 369.2 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1476/0.2629, allocations: 0.7041 MB / 369.9 MB, free: 25.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002147/0.2631, allocations: 0.7726 MB / 370.7 MB, free: 24.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.2633, allocations: 23.12 kB / 370.7 MB, free: 24.66 MB / 302.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2633, allocations: 4.672 kB / 370.7 MB, free: 24.66 MB / 302.1 MB Notification: Performance of Templates: time 0.008094/0.2714, allocations: 5.846 MB / 376.6 MB, free: 24.1 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches