Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007338/0.0007339, allocations: 97.11 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008413/0.0008414, allocations: 206.6 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.7 MB / 246.8 MB, free: 11.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001995/0.0001996, allocations: 4 kB / 307.8 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.086/0.08621, allocations: 51.52 MB / 359.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.002701/0.08895, allocations: 2.442 MB / 361.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.09017, allocations: 0.8842 MB / 362.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.09029, allocations: 7.938 kB / 362.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001933/0.09049, allocations: 51.67 kB / 362.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002351/0.09074, allocations: 95.36 kB / 362.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002287/0.09098, allocations: 87.92 kB / 362.8 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003049/0.09129, allocations: 342.6 kB / 363.2 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.09146, allocations: 90.2 kB / 363.3 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001967/0.09166, allocations: 131.5 kB / 363.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.09184, allocations: 143.2 kB / 363.5 MB, free: 9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.261e-05/0.09188, allocations: 16 kB / 363.5 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.857e-05/0.09194, allocations: 16 kB / 363.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.447e-05/0.09199, allocations: 51.77 kB / 363.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.09213, allocations: 168.9 kB / 363.8 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002891/0.09242, allocations: 346.8 kB / 364.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.09243, allocations: 0 / 364.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.09244, allocations: 0 / 364.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.09245, allocations: 0 / 364.1 MB, free: 8.406 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008239/0.09328, allocations: 0.5652 MB / 364.7 MB, free: 7.793 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.09331, allocations: 8.031 kB / 364.7 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.09348, allocations: 48.55 kB / 364.7 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002522/0.09374, allocations: 264.6 kB / 365 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.09377, allocations: 20.94 kB / 365 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.09383, allocations: 24.38 kB / 365 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004516/0.09428, allocations: 253.2 kB / 365.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.0943, allocations: 0 / 365.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.783e-05/0.09433, allocations: 12 kB / 365.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.09435, allocations: 12 kB / 365.3 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004389/0.09479, allocations: 222.1 kB / 365.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.09622, allocations: 1.017 MB / 366.5 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003925/0.09663, allocations: 205.9 kB / 366.7 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002356/0.09688, allocations: 117.2 kB / 366.9 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.09691, allocations: 4 kB / 366.9 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.382e-05/0.09694, allocations: 38.42 kB / 366.9 MB, free: 5.418 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.242e-06/0.09694, allocations: 0 / 366.9 MB, free: 5.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.004841/0.1018, allocations: 1.556 MB / 368.5 MB, free: 3.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.202e-05/0.1018, allocations: 67.28 kB / 368.5 MB, free: 3.707 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002079/0.1021, allocations: 233 kB / 368.7 MB, free: 3.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.1021, allocations: 33.7 kB / 368.8 MB, free: 3.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.1022, allocations: 184.1 kB / 369 MB, free: 3.246 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.873e-05/0.1023, allocations: 122.2 kB / 369.1 MB, free: 3.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.178e-05/0.1023, allocations: 37.7 kB / 369.1 MB, free: 3.082 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1024, allocations: 334.8 kB / 369.4 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002333/0.1027, allocations: 116.7 kB / 369.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000258/0.103, allocations: 157.7 kB / 369.7 MB, free: 2.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004959/0.1035, allocations: 291.8 kB / 370 MB, free: 2.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1035, allocations: 3.938 kB / 370 MB, free: 2.156 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001555/0.105, allocations: 0.5373 MB / 370.5 MB, free: 1.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.1051, allocations: 4 kB / 370.5 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.1051, allocations: 0 / 370.5 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/0.1065, allocations: 261.4 kB / 370.8 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.1067, allocations: 55.91 kB / 370.9 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2319/0.3386, allocations: 3.74 MB / 374.6 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003432/0.339, allocations: 17.05 kB / 374.6 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.478e-05/0.3391, allocations: 18.53 kB / 374.6 MB, free: 16.68 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 27 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002075/0.3393, allocations: 153 kB / 374.8 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.153e-05/0.3394, allocations: 28.8 kB / 374.8 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001363/0.3395, allocations: 41.56 kB / 374.8 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.3395, allocations: 3.688 kB / 374.8 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.3395, allocations: 2.094 kB / 374.8 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.3396, allocations: 7.125 kB / 374.9 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002784/0.3423, allocations: 0.9915 MB / 375.8 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.3424, allocations: 2.281 kB / 375.9 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.3426, allocations: 40.41 kB / 375.9 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001638/0.3443, allocations: 254.1 kB / 376.1 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.763e-05/0.3443, allocations: 11.67 kB / 376.1 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003903/0.3482, allocations: 3.744 MB / 379.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3483, allocations: 320 / 379.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.3501, allocations: 0.7369 MB / 380.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.669e-05/0.3501, allocations: 102.2 kB / 380.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.3502, allocations: 8.531 kB / 380.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.3504, allocations: 22.47 kB / 380.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.38e-05/0.3505, allocations: 29.08 kB / 380.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.3505, allocations: 11.39 kB / 380.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001543/0.3507, allocations: 171 kB / 381 MB, free: 12.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3507, allocations: 0 / 381 MB, free: 12.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006163/0.3513, allocations: 100.3 kB / 381.1 MB, free: 12.5 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * 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 (19): * Single equations (assignments): 17 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001195/0.3515, allocations: 110.8 kB / 381.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009766/0.3524, allocations: 0.5626 MB / 381.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3525, allocations: 0 / 381.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005406/0.353, allocations: 425.3 kB / 382.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000386/0.3534, allocations: 33.55 kB / 382.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.3549, allocations: 0.8857 MB / 383.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/0.3551, allocations: 0.7785 MB / 383.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001112/0.3553, allocations: 21.45 kB / 383.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.405e-05/0.3553, allocations: 26.41 kB / 383.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3553, allocations: 0 / 383.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Templates: time 0.01098/0.3663, allocations: 5.26 MB / 389.2 MB, free: 9.531 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches