Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 101 kB / 17.59 MB, free: 5.422 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.001586/0.001586, allocations: 191.3 kB / 18.51 MB, free: 4.5 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.413/1.413, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000977/0.000977, allocations: 52.05 kB / 301.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08012/0.08111, allocations: 49.44 MB / 350.7 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.003982/0.08512, allocations: 2.812 MB / 353.5 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.08629, allocations: 0.7516 MB / 354.3 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001259/0.08643, allocations: 8 kB / 354.3 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001934/0.08665, allocations: 71.42 kB / 354.4 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002284/0.08689, allocations: 95.17 kB / 354.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002305/0.08713, allocations: 103.8 kB / 354.6 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000336/0.08747, allocations: 406.3 kB / 355 MB, free: 156 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002018/0.08768, allocations: 130.8 kB / 355.1 MB, free: 24 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002085/0.0879, allocations: 159.3 kB / 355.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001872/0.0881, allocations: 179.2 kB / 355.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.015e-05/0.08815, allocations: 32 kB / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.018e-05/0.08822, allocations: 36 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.111e-05/0.08829, allocations: 75.69 kB / 355.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.08843, allocations: 175.1 kB / 355.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003229/0.08876, allocations: 398.8 kB / 356.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.08878, allocations: 0 / 356.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.08878, allocations: 4 kB / 356.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.0888, allocations: 0 / 356.1 MB, free: 14.98 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.001093/0.08989, allocations: 0.6393 MB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.08994, allocations: 12.03 kB / 356.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.888e-05/0.09003, allocations: 40.41 kB / 356.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/0.09032, allocations: 276.6 kB / 357.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.09035, allocations: 25.03 kB / 357.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.099e-05/0.09041, allocations: 32.38 kB / 357.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000577/0.09099, allocations: 298.3 kB / 357.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.09101, allocations: 0 / 357.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.865e-05/0.09105, allocations: 12 kB / 357.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.09107, allocations: 8 kB / 357.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006039/0.09168, allocations: 258.5 kB / 357.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.09324, allocations: 1.108 MB / 358.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003725/0.09363, allocations: 166.4 kB / 359 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001776/0.09382, allocations: 68.81 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.09386, allocations: 11.92 kB / 359.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.09389, allocations: 30.56 kB / 359.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.443e-06/0.09389, allocations: 0 / 359.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.002019/0.09592, allocations: 0.5936 MB / 359.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.09596, allocations: 55.41 kB / 359.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.09625, allocations: 282.5 kB / 360 MB, free: 10.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.09627, allocations: 29.7 kB / 360 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.09641, allocations: 223.5 kB / 360.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.134e-05/0.09648, allocations: 82.83 kB / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.517e-05/0.09658, allocations: 65.61 kB / 360.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.09669, allocations: 342.8 kB / 360.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002933/0.09699, allocations: 95.92 kB / 360.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003474/0.09735, allocations: 195 kB / 361 MB, free: 9.773 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006061/0.09797, allocations: 299 kB / 361.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.09798, allocations: 4 kB / 361.3 MB, free: 9.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000855/0.09885, allocations: 409.2 kB / 361.7 MB, free: 9.027 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.09888, allocations: 4 kB / 361.7 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.09889, allocations: 7.938 kB / 361.7 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002628/0.09916, allocations: 61.67 kB / 361.8 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003354/0.09951, allocations: 71.89 kB / 361.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002009/0.1015, allocations: 2.84 MB / 364.7 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002861/0.1018, allocations: 23.98 kB / 364.7 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.1019, allocations: 12 kB / 364.7 MB, free: 5.719 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.0001767/0.102, allocations: 161.7 kB / 364.9 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.309e-05/0.1021, allocations: 23.72 kB / 364.9 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.708e-05/0.1022, allocations: 34.17 kB / 365 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.1022, allocations: 4 kB / 365 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1022, allocations: 0 / 365 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1022, allocations: 0 / 365 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003716/0.1026, allocations: 333.4 kB / 365.3 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.1026, allocations: 4 kB / 365.3 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002057/0.1028, allocations: 39.97 kB / 365.3 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.103, allocations: 53.67 kB / 365.4 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.103, allocations: 4 kB / 365.4 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00184/0.1049, allocations: 2.837 MB / 368.2 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1049, allocations: 0 / 368.2 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007178/0.1056, allocations: 378.8 kB / 368.6 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.615e-05/0.1057, allocations: 104.7 kB / 368.7 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.811e-05/0.1057, allocations: 11.98 kB / 368.7 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.106, allocations: 7.984 kB / 368.7 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.697e-05/0.106, allocations: 23.97 kB / 368.7 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.1061, allocations: 8 kB / 368.7 MB, free: 1.336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000188/0.1063, allocations: 193.9 kB / 368.9 MB, free: 1.145 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.434e-06/0.1063, allocations: 0 / 368.9 MB, free: 1.145 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004045/0.1067, allocations: 83.94 kB / 369 MB, free: 1.062 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.0001247/0.1068, allocations: 103.2 kB / 369.1 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009776/0.1078, allocations: 489 kB / 369.6 MB, free: 460 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1078, allocations: 0 / 369.6 MB, free: 460 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004895/0.1083, allocations: 346 kB / 369.9 MB, free: 88 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004217/0.1088, allocations: 27.8 kB / 370 MB, free: 64 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.191/0.2998, allocations: 0.5767 MB / 370.5 MB, free: 25.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.3002, allocations: 0.7761 MB / 371.3 MB, free: 24.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.3004, allocations: 30.41 kB / 371.3 MB, free: 24.55 MB / 302.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3004, allocations: 0 / 371.3 MB, free: 24.55 MB / 302.1 MB Notification: Performance of Templates: time 0.01511/0.3155, allocations: 5.992 MB / 377.3 MB, free: 23.89 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches