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.001353/0.001353, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 247.5 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 63.92 kB / 307.7 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09656/0.09846, allocations: 50.54 MB / 358.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.004705/0.1032, allocations: 2.754 MB / 360.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001793/0.105, allocations: 0.9501 MB / 361.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001849/0.1053, allocations: 8 kB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002953/0.1056, allocations: 63.44 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003193/0.1059, allocations: 111.1 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000355/0.1063, allocations: 111.8 kB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004146/0.1067, allocations: 358.6 kB / 362.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002221/0.107, allocations: 105.7 kB / 362.6 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000241/0.1072, allocations: 143.4 kB / 362.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002259/0.1074, allocations: 147.3 kB / 362.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.729e-05/0.1075, allocations: 28 kB / 362.9 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.967e-05/0.1076, allocations: 39.98 kB / 363 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.88e-05/0.1077, allocations: 71.69 kB / 363.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001593/0.1078, allocations: 159.2 kB / 363.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000419/0.1083, allocations: 366.9 kB / 363.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1083, allocations: 0 / 363.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1083, allocations: 0 / 363.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.1083, allocations: 0 / 363.6 MB, free: 8.633 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.001118/0.1094, allocations: 0.6158 MB / 364.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.1095, allocations: 8.031 kB / 364.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.1097, allocations: 40.56 kB / 364.2 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003262/0.11, allocations: 260.7 kB / 364.5 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.776e-05/0.1101, allocations: 28.92 kB / 364.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.985e-05/0.1101, allocations: 24.38 kB / 364.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005286/0.1106, allocations: 249.2 kB / 364.8 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.1107, allocations: 4 kB / 364.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.1107, allocations: 12 kB / 364.8 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.1107, allocations: 8 kB / 364.8 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000467/0.1112, allocations: 210.1 kB / 365 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.1129, allocations: 1.009 MB / 366 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004625/0.1134, allocations: 202.5 kB / 366.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002772/0.1137, allocations: 120.5 kB / 366.3 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/0.1137, allocations: 8 kB / 366.3 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.1138, allocations: 38.42 kB / 366.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.463e-06/0.1138, allocations: 0 / 366.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.00543/0.1192, allocations: 1.545 MB / 367.9 MB, free: 4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.1193, allocations: 63.34 kB / 368 MB, free: 3.926 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002607/0.1195, allocations: 229 kB / 368.2 MB, free: 3.691 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.1196, allocations: 33.7 kB / 368.2 MB, free: 3.652 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/0.1197, allocations: 184.1 kB / 368.4 MB, free: 3.469 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.1198, allocations: 122.3 kB / 368.5 MB, free: 3.348 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.12, allocations: 69.92 kB / 368.6 MB, free: 3.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.1201, allocations: 334.8 kB / 368.9 MB, free: 2.934 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002538/0.1204, allocations: 116.7 kB / 369.1 MB, free: 2.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003289/0.1207, allocations: 153.7 kB / 369.2 MB, free: 2.656 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005603/0.1213, allocations: 279.8 kB / 369.5 MB, free: 2.367 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.1213, allocations: 3.984 kB / 369.5 MB, free: 2.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001631/0.123, allocations: 0.5295 MB / 370 MB, free: 1.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.123, allocations: 8 kB / 370 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.123, allocations: 0 / 370 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001293/0.1243, allocations: 241.5 kB / 370.3 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.1246, allocations: 67.89 kB / 370.3 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1548/0.2794, allocations: 4.122 MB / 374.4 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002703/0.2797, allocations: 16.05 kB / 374.5 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.2797, allocations: 12.3 kB / 374.5 MB, free: 17.28 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.0001565/0.2799, allocations: 150.2 kB / 374.6 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.012e-05/0.2799, allocations: 31.31 kB / 374.6 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.166e-05/0.28, allocations: 44.2 kB / 374.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.2801, allocations: 6.281 kB / 374.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.2801, allocations: 1.938 kB / 374.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.2801, allocations: 2.094 kB / 374.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002124/0.2822, allocations: 0.9864 MB / 375.7 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.2822, allocations: 0.8125 kB / 375.7 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002207/0.2825, allocations: 48.08 kB / 375.7 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001186/0.2837, allocations: 242.4 kB / 376 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.2837, allocations: 7.625 kB / 376 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003848/0.2875, allocations: 4.123 MB / 380.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2876, allocations: 3.719 kB / 380.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001679/0.2892, allocations: 0.7257 MB / 380.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.074e-05/0.2893, allocations: 106.2 kB / 380.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.2894, allocations: 8.484 kB / 380.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.2896, allocations: 12.08 kB / 381 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.174e-05/0.2897, allocations: 32.7 kB / 381 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.2897, allocations: 11.53 kB / 381 MB, free: 12.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001397/0.2899, allocations: 167.1 kB / 381.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2899, allocations: 0 / 381.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006061/0.2905, allocations: 103.5 kB / 381.3 MB, free: 12.43 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.0001092/0.2906, allocations: 110.5 kB / 381.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009208/0.2915, allocations: 0.5714 MB / 381.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.2915, allocations: 1.375 kB / 381.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004977/0.292, allocations: 427.4 kB / 382.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.2924, allocations: 31.62 kB / 382.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.2935, allocations: 0.7399 MB / 383.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002052/0.2938, allocations: 0.78 MB / 383.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.21e-05/0.2938, allocations: 20.31 kB / 383.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2938, allocations: 0 / 383.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of Templates: time 0.008248/0.3021, allocations: 6.1 MB / 390 MB, free: 9.082 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.1.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