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.0009747/0.0009747, allocations: 96.42 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001721/0.001721, allocations: 200.8 kB / 18.93 MB, free: 4.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.7 MB / 247.5 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002212/0.0002213, allocations: 4 kB / 308.4 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08793/0.08817, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.002772/0.09098, allocations: 2.435 MB / 362.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.09232, allocations: 0.892 MB / 363.2 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.09246, allocations: 4 kB / 363.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002078/0.09268, allocations: 47.62 kB / 363.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002483/0.09293, allocations: 87.38 kB / 363.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002448/0.09319, allocations: 99.91 kB / 363.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003122/0.09351, allocations: 342.6 kB / 363.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.09369, allocations: 90.25 kB / 363.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002003/0.0939, allocations: 123.4 kB / 364 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.09408, allocations: 131.4 kB / 364.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.09412, allocations: 16 kB / 364.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.322e-05/0.09419, allocations: 23.94 kB / 364.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.614e-05/0.09424, allocations: 51.75 kB / 364.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.09437, allocations: 164.9 kB / 364.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.09463, allocations: 275.4 kB / 364.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.09464, allocations: 3.938 kB / 364.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.09465, allocations: 0 / 364.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.09466, allocations: 0 / 364.7 MB, free: 8.52 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.0009045/0.09557, allocations: 0.5691 MB / 365.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.09562, allocations: 8.031 kB / 365.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.0958, allocations: 44.55 kB / 365.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002688/0.09607, allocations: 260.6 kB / 365.6 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.09611, allocations: 20.94 kB / 365.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.09616, allocations: 32.38 kB / 365.6 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004716/0.09664, allocations: 261.2 kB / 365.9 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.09666, allocations: 0 / 365.9 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.036e-05/0.09669, allocations: 12 kB / 365.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.09671, allocations: 8 kB / 365.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004411/0.09716, allocations: 214.1 kB / 366.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.09872, allocations: 1.021 MB / 367.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004196/0.09915, allocations: 206.5 kB / 367.3 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002359/0.0994, allocations: 109.2 kB / 367.4 MB, free: 5.582 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.09944, allocations: 8.062 kB / 367.4 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/0.09948, allocations: 46.44 kB / 367.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.09949, allocations: 0 / 367.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.005042/0.1045, allocations: 1.552 MB / 369 MB, free: 3.891 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.1046, allocations: 63.28 kB / 369.1 MB, free: 3.816 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.1048, allocations: 233 kB / 369.3 MB, free: 3.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.1049, allocations: 33.7 kB / 369.3 MB, free: 3.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.105, allocations: 188.1 kB / 369.5 MB, free: 3.352 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.119e-05/0.1051, allocations: 126.2 kB / 369.7 MB, free: 3.227 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.057e-05/0.1051, allocations: 33.7 kB / 369.7 MB, free: 3.188 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1052, allocations: 334.8 kB / 370 MB, free: 2.852 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002402/0.1055, allocations: 108.7 kB / 370.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.1058, allocations: 165.7 kB / 370.3 MB, free: 2.566 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005038/0.1063, allocations: 279.8 kB / 370.6 MB, free: 2.277 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1063, allocations: 8 kB / 370.6 MB, free: 2.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001628/0.1079, allocations: 0.5334 MB / 371.1 MB, free: 1.723 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.108, allocations: 10.97 kB / 371.1 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.108, allocations: 0 / 371.1 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00142/0.1094, allocations: 253.4 kB / 371.4 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002682/0.1097, allocations: 63.91 kB / 371.4 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1803/0.29, allocations: 3.745 MB / 375.2 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002874/0.2903, allocations: 13.58 kB / 375.2 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.325e-05/0.2904, allocations: 17.92 kB / 375.2 MB, free: 16.69 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.0001756/0.2906, allocations: 149.9 kB / 375.3 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.652e-05/0.2906, allocations: 28.31 kB / 375.4 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.2908, allocations: 43.3 kB / 375.4 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.2908, allocations: 3.625 kB / 375.4 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.2908, allocations: 3.656 kB / 375.4 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.2908, allocations: 3.438 kB / 375.4 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002363/0.2932, allocations: 0.9952 MB / 376.4 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.2932, allocations: 0.9062 kB / 376.4 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002188/0.2934, allocations: 52.7 kB / 376.5 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001483/0.2949, allocations: 246.5 kB / 376.7 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.802e-05/0.295, allocations: 9.469 kB / 376.7 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003847/0.2988, allocations: 3.746 MB / 380.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2988, allocations: 5.25 kB / 380.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.3006, allocations: 0.7337 MB / 381.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.486e-05/0.3007, allocations: 98.95 kB / 381.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.521e-05/0.3007, allocations: 9.375 kB / 381.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.301, allocations: 19.52 kB / 381.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.3011, allocations: 33.88 kB / 381.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-05/0.3011, allocations: 9.969 kB / 381.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001505/0.3013, allocations: 173.8 kB / 381.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3013, allocations: 1.375 kB / 381.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006255/0.3019, allocations: 100.6 kB / 381.6 MB, free: 12.55 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.0001241/0.3021, allocations: 112.3 kB / 381.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009558/0.303, allocations: 0.5643 MB / 382.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.303, allocations: 0 / 382.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005259/0.3036, allocations: 427.3 kB / 382.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.3039, allocations: 28 kB / 382.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.3052, allocations: 0.9145 MB / 383.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.3055, allocations: 0.78 MB / 384.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.8e-05/0.3056, allocations: 20.11 kB / 384.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3056, allocations: 0 / 384.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of Templates: time 0.01019/0.3158, allocations: 6.093 MB / 390.6 MB, free: 9 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins1/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