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.0009468/0.0009469, allocations: 95.84 kB / 16.3 MB, free: 5.656 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.0009175/0.0009178, allocations: 188.5 kB / 17.2 MB, free: 5.59 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.242/1.242, allocations: 223.2 MB / 241.1 MB, free: 396 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002208/0.0002208, allocations: 11.94 kB / 300.7 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08825/0.08848, allocations: 50.42 MB / 351.1 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.002693/0.09122, allocations: 2.282 MB / 353.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.0923, allocations: 0.7094 MB / 354.1 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.09242, allocations: 7.938 kB / 354.1 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001438/0.09258, allocations: 47.67 kB / 354.2 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002328/0.09282, allocations: 91.73 kB / 354.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002202/0.09305, allocations: 75.91 kB / 354.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002765/0.09333, allocations: 259.3 kB / 354.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.09352, allocations: 102 kB / 354.7 MB, free: 464 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002055/0.09374, allocations: 135.4 kB / 354.8 MB, free: 328 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.09392, allocations: 155.3 kB / 355 MB, free: 172 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.498e-05/0.09396, allocations: 20 kB / 355 MB, free: 152 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.056e-05/0.09401, allocations: 20 kB / 355 MB, free: 132 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.836e-05/0.09406, allocations: 55.75 kB / 355.1 MB, free: 76 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.394e-05/0.09415, allocations: 85.59 kB / 355.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002524/0.09441, allocations: 299.3 kB / 355.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.09442, allocations: 0 / 355.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.09443, allocations: 0 / 355.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.09444, allocations: 0 / 355.5 MB, free: 15.69 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.001087/0.09553, allocations: 0.6081 MB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.09557, allocations: 8.031 kB / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.939e-05/0.09565, allocations: 43.48 kB / 356.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003084/0.09596, allocations: 271.4 kB / 356.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.096, allocations: 20.66 kB / 356.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.956e-05/0.09605, allocations: 35.94 kB / 356.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005713/0.09663, allocations: 294 kB / 356.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.09665, allocations: 0 / 356.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.894e-05/0.09669, allocations: 16 kB / 356.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.0967, allocations: 11.95 kB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006385/0.09735, allocations: 270.4 kB / 357 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001645/0.099, allocations: 1.128 MB / 358.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003629/0.09938, allocations: 150.6 kB / 358.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.09942, allocations: 4 kB / 358.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.09945, allocations: 38.5 kB / 358.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.09945, allocations: 0 / 358.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.002146/0.1016, allocations: 0.6773 MB / 359 MB, free: 11.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.1017, allocations: 63.52 kB / 359.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003207/0.102, allocations: 274.6 kB / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.102, allocations: 33.7 kB / 359.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.1022, allocations: 223.5 kB / 359.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.217e-05/0.1022, allocations: 74.84 kB / 359.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.724e-05/0.1023, allocations: 12 kB / 359.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1024, allocations: 334.8 kB / 360 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/0.1027, allocations: 107.9 kB / 360.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003659/0.1031, allocations: 208.1 kB / 360.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/0.1034, allocations: 126 kB / 360.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.1035, allocations: 7.953 kB / 360.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008812/0.1043, allocations: 417.6 kB / 360.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.1044, allocations: 4 kB / 360.9 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.1044, allocations: 4 kB / 360.9 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002501/0.1047, allocations: 65.61 kB / 360.9 MB, free: 9.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003532/0.105, allocations: 75.89 kB / 361 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001969/0.107, allocations: 2.659 MB / 363.7 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000298/0.1073, allocations: 32.44 kB / 363.7 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.1073, allocations: 12 kB / 363.7 MB, free: 6.867 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001726/0.1075, allocations: 150.7 kB / 363.8 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.628e-05/0.1076, allocations: 23.72 kB / 363.9 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.855e-05/0.1077, allocations: 38.16 kB / 363.9 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1077, allocations: 7.953 kB / 363.9 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.1077, allocations: 0 / 363.9 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1077, allocations: 0 / 363.9 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003644/0.1081, allocations: 329.6 kB / 364.2 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1081, allocations: 0 / 364.2 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002154/0.1083, allocations: 55.91 kB / 364.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001586/0.1085, allocations: 53.67 kB / 364.3 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.1085, allocations: 8 kB / 364.4 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001943/0.1104, allocations: 2.651 MB / 367 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1104, allocations: 0 / 367 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007915/0.1112, allocations: 397.5 kB / 367.4 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.958e-05/0.1113, allocations: 104.8 kB / 367.5 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.1114, allocations: 3.984 kB / 367.5 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.1116, allocations: 19.98 kB / 367.5 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.161e-05/0.1117, allocations: 19.97 kB / 367.5 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.1117, allocations: 8 kB / 367.5 MB, free: 2.652 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000205/0.1119, allocations: 198 kB / 367.7 MB, free: 2.461 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1119, allocations: 0 / 367.7 MB, free: 2.461 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004203/0.1123, allocations: 72 kB / 367.8 MB, free: 2.391 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001303/0.1125, allocations: 107.7 kB / 367.9 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009824/0.1135, allocations: 0.4931 MB / 368.4 MB, free: 1.758 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1135, allocations: 0 / 368.4 MB, free: 1.758 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005049/0.114, allocations: 355.8 kB / 368.8 MB, free: 1.387 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.1143, allocations: 28.5 kB / 368.8 MB, free: 1.359 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.1153, allocations: 0.6714 MB / 369.5 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1353/0.2506, allocations: 0.7817 MB / 370.2 MB, free: 23.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001833/0.2508, allocations: 33.48 kB / 370.3 MB, free: 23.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.33e-05/0.2509, allocations: 21.19 kB / 370.3 MB, free: 23.98 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2509, allocations: 0 / 370.3 MB, free: 23.98 MB / 302.1 MB Notification: Performance of Templates: time 0.006409/0.2573, allocations: 2.474 MB / 372.8 MB, free: 23.95 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches