Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001016/0.001016, allocations: 197.7 kB / 17.05 MB, free: 5.07 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 226.6 MB / 244.4 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007901/0.0007901, allocations: 98.66 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000201/0.0002011, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.204/0.2042, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.002066/0.2063, allocations: 2.333 MB / 409.8 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009084/0.2073, allocations: 0.8207 MB / 410.6 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.2074, allocations: 4 kB / 410.7 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.2076, allocations: 39.69 kB / 410.7 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001989/0.2078, allocations: 87.97 kB / 410.8 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001765/0.208, allocations: 77.97 kB / 410.9 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001959/0.2082, allocations: 314.7 kB / 411.2 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.2083, allocations: 88.81 kB / 411.2 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001523/0.2085, allocations: 115.5 kB / 411.4 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.2086, allocations: 127.4 kB / 411.5 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.2086, allocations: 16 kB / 411.5 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.983e-05/0.2087, allocations: 27.94 kB / 411.5 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.818e-05/0.2087, allocations: 47.77 kB / 411.6 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.966e-05/0.2088, allocations: 73.58 kB / 411.6 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001871/0.209, allocations: 272.2 kB / 411.9 MB, free: 23.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.209, allocations: 0 / 411.9 MB, free: 23.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.209, allocations: 4 kB / 411.9 MB, free: 23.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.209, allocations: 3.938 kB / 411.9 MB, free: 23.4 MB / 298.7 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.000725/0.2097, allocations: 0.5573 MB / 412.5 MB, free: 22.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.046e-05/0.2098, allocations: 8.031 kB / 412.5 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.21, allocations: 47.52 kB / 412.5 MB, free: 22.74 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001935/0.2102, allocations: 254.3 kB / 412.8 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.2102, allocations: 20.56 kB / 412.8 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.411e-05/0.2102, allocations: 28 kB / 412.8 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003907/0.2106, allocations: 256.8 kB / 413.1 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.2106, allocations: 0 / 413.1 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.401e-05/0.2107, allocations: 16 kB / 413.1 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.2107, allocations: 8 kB / 413.1 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003694/0.2111, allocations: 210.1 kB / 413.3 MB, free: 21.92 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.2122, allocations: 0.9977 MB / 414.3 MB, free: 20.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003468/0.2126, allocations: 218.5 kB / 414.5 MB, free: 20.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.2128, allocations: 110.8 kB / 414.6 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.2128, allocations: 11.84 kB / 414.6 MB, free: 20.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.2129, allocations: 34.56 kB / 414.7 MB, free: 20.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.472e-06/0.2129, allocations: 4 kB / 414.7 MB, free: 20.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.004473/0.2174, allocations: 1.544 MB / 416.2 MB, free: 18.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.589e-05/0.2174, allocations: 59.41 kB / 416.3 MB, free: 18.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.2176, allocations: 232.8 kB / 416.5 MB, free: 18.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.2176, allocations: 33.7 kB / 416.5 MB, free: 18.47 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.282e-05/0.2177, allocations: 176.2 kB / 416.7 MB, free: 18.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.444e-05/0.2177, allocations: 122.3 kB / 416.8 MB, free: 18.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.562e-05/0.2177, allocations: 8 kB / 416.8 MB, free: 18.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.938e-05/0.2178, allocations: 338.8 kB / 417.2 MB, free: 17.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.218, allocations: 116.6 kB / 417.3 MB, free: 17.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.2182, allocations: 157.5 kB / 417.4 MB, free: 17.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002194/0.2185, allocations: 135.5 kB / 417.6 MB, free: 17.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.2185, allocations: 0 / 417.6 MB, free: 17.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001363/0.2198, allocations: 0.5258 MB / 418.1 MB, free: 16.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.2199, allocations: 10.77 kB / 418.1 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2199, allocations: 4 kB / 418.1 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001305/0.2212, allocations: 253.5 kB / 418.4 MB, free: 16.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002421/0.2214, allocations: 59.91 kB / 418.4 MB, free: 16.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003401/0.2248, allocations: 3.748 MB / 422.2 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002161/0.2251, allocations: 16.02 kB / 422.2 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-05/0.2251, allocations: 16 kB / 422.2 MB, free: 12.5 MB / 298.7 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 (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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001283/0.2252, allocations: 157 kB / 422.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.641e-05/0.2253, allocations: 23.72 kB / 422.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.179e-05/0.2254, allocations: 38.95 kB / 422.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.2254, allocations: 4 kB / 422.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.2254, allocations: 4.062 kB / 422.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.2254, allocations: 7.953 kB / 422.4 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.2272, allocations: 0.9861 MB / 423.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.2272, allocations: 0 / 423.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001867/0.2274, allocations: 47.97 kB / 423.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/0.2287, allocations: 245.5 kB / 423.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.2287, allocations: 8 kB / 423.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00315/0.2319, allocations: 3.737 MB / 427.4 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2319, allocations: 4.031 kB / 427.4 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.2335, allocations: 0.7339 MB / 428.2 MB, free: 6.137 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.084e-05/0.2335, allocations: 108.8 kB / 428.3 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.21e-05/0.2336, allocations: 15.95 kB / 428.3 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002316/0.2338, allocations: 15.98 kB / 428.3 MB, free: 5.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.575e-05/0.2339, allocations: 27.95 kB / 428.3 MB, free: 5.953 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.2339, allocations: 12 kB / 428.4 MB, free: 5.941 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001008/0.234, allocations: 160.5 kB / 428.5 MB, free: 5.781 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.234, allocations: 64 / 428.5 MB, free: 5.781 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005022/0.2345, allocations: 104 kB / 428.6 MB, free: 5.68 MB / 298.7 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 (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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 9.976e-05/0.2346, allocations: 111.2 kB / 428.7 MB, free: 5.562 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007463/0.2354, allocations: 0.5597 MB / 429.3 MB, free: 4.977 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2354, allocations: 0 / 429.3 MB, free: 4.977 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004299/0.2358, allocations: 441.7 kB / 429.7 MB, free: 4.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.2361, allocations: 24.39 kB / 429.7 MB, free: 4.496 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009457/0.2371, allocations: 0.8638 MB / 430.6 MB, free: 3.594 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000162/0.2373, allocations: 0.7799 MB / 431.4 MB, free: 2.789 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.633e-05/0.2373, allocations: 19.44 kB / 431.4 MB, free: 2.77 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2373, allocations: 0 / 431.4 MB, free: 2.77 MB / 298.7 MB Notification: Performance of Templates: time 0.006315/0.2437, allocations: 5.966 MB / 437.4 MB, free: 12.8 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches