Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") translateModel(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002169/0.002169, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.968/1.968, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00118/0.001179, allocations: 90.61 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.987e-05/1.996e-05, allocations: 4 kB / 314.8 MB, free: 9.168 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3381, allocations: 47.56 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.129/0.4671, allocations: 78.5 MB / 440.8 MB, free: 7.801 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002963/0.4675, allocations: 75.02 kB / 440.9 MB, free: 7.73 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03199/0.4995, allocations: 6.869 MB / 447.8 MB, free: 0.8828 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4995, allocations: 0.9375 kB / 447.8 MB, free: 0.8828 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.962e-05/0.4995, allocations: 4 kB / 447.8 MB, free: 0.8789 MB / 331.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.001193/0.5007, allocations: 0.5328 MB / 448.3 MB, free: 312 kB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.5008, allocations: 8.031 kB / 448.3 MB, free: 304 kB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.613e-05/0.5009, allocations: 31.62 kB / 448.4 MB, free: 272 kB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005192/0.5015, allocations: 263.1 kB / 448.6 MB, free: 15.96 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.907e-05/0.5015, allocations: 19.89 kB / 448.6 MB, free: 15.95 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.737e-05/0.5016, allocations: 12 kB / 448.6 MB, free: 15.94 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005252/0.5021, allocations: 173 kB / 448.8 MB, free: 15.77 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005539/0.5027, allocations: 191.8 kB / 449 MB, free: 15.57 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.5027, allocations: 1.125 kB / 449 MB, free: 15.57 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.371e-05/0.5028, allocations: 0 / 449 MB, free: 15.57 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.5028, allocations: 8 kB / 449 MB, free: 15.57 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00241/0.5052, allocations: 0.968 MB / 450 MB, free: 14.53 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004703/0.5057, allocations: 185.8 kB / 450.2 MB, free: 14.34 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002702/0.506, allocations: 96.84 kB / 450.2 MB, free: 14.24 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.575e-05/0.506, allocations: 0 / 450.2 MB, free: 14.24 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.5061, allocations: 34.56 kB / 450.3 MB, free: 14.2 MB / 347.1 MB Notification: Performance of pre-optimization done (n=23): time 1.873e-06/0.5061, allocations: 1.969 kB / 450.3 MB, free: 14.2 MB / 347.1 MB Notification: Performance of matching and sorting (n=34): time 0.005677/0.5118, allocations: 1.093 MB / 451.4 MB, free: 13.05 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.5119, allocations: 55.41 kB / 451.4 MB, free: 12.98 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000293/0.5122, allocations: 183.2 kB / 451.6 MB, free: 12.79 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.318e-05/0.5123, allocations: 29.7 kB / 451.6 MB, free: 12.76 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.5124, allocations: 254.7 kB / 451.9 MB, free: 12.5 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/0.5126, allocations: 110.3 kB / 452 MB, free: 12.39 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.24e-05/0.5126, allocations: 0 / 452 MB, free: 12.39 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.5128, allocations: 326.8 kB / 452.3 MB, free: 12.07 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.5131, allocations: 90.86 kB / 452.4 MB, free: 11.98 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003213/0.5134, allocations: 138.6 kB / 452.5 MB, free: 11.82 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003134/0.5137, allocations: 105.5 kB / 452.6 MB, free: 11.72 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.5137, allocations: 11.94 kB / 452.7 MB, free: 11.71 MB / 347.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002425/0.5162, allocations: 472.8 kB / 453.1 MB, free: 11.24 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.5162, allocations: 4 kB / 453.1 MB, free: 11.23 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.5163, allocations: 3.953 kB / 453.1 MB, free: 11.23 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001356/0.5176, allocations: 190.5 kB / 453.3 MB, free: 11.04 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004916/0.5181, allocations: 55.91 kB / 453.4 MB, free: 10.98 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00682/0.525, allocations: 3.624 MB / 457 MB, free: 7.137 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004214/0.5255, allocations: 16.08 kB / 457 MB, free: 7.121 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.057e-05/0.5255, allocations: 12 kB / 457 MB, free: 7.109 MB / 347.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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.0001558/0.5257, allocations: 108.9 kB / 457.1 MB, free: 6.996 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.915e-05/0.5258, allocations: 23.72 kB / 457.1 MB, free: 6.973 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.5259, allocations: 39.39 kB / 457.2 MB, free: 6.934 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.5259, allocations: 4 kB / 457.2 MB, free: 6.93 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.5259, allocations: 0 / 457.2 MB, free: 6.93 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.5259, allocations: 7.984 kB / 457.2 MB, free: 6.922 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003122/0.5291, allocations: 0.8682 MB / 458.1 MB, free: 6 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.902e-06/0.5291, allocations: 0 / 458.1 MB, free: 6 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003957/0.5295, allocations: 35.97 kB / 458.1 MB, free: 5.965 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001307/0.5309, allocations: 187.6 kB / 458.3 MB, free: 5.777 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.021e-05/0.5309, allocations: 4 kB / 458.3 MB, free: 5.773 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006861/0.5378, allocations: 3.614 MB / 461.9 MB, free: 1.93 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-05/0.5379, allocations: 3.953 kB / 461.9 MB, free: 1.926 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002748/0.5406, allocations: 0.6786 MB / 462.6 MB, free: 1.215 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.5408, allocations: 100.9 kB / 462.7 MB, free: 1.098 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.105e-05/0.5408, allocations: 4 kB / 462.7 MB, free: 1.094 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003721/0.5412, allocations: 7.938 kB / 462.7 MB, free: 1.086 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.5414, allocations: 35.94 kB / 462.7 MB, free: 1.051 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.243e-05/0.5414, allocations: 8 kB / 462.7 MB, free: 1.043 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002159/0.5416, allocations: 153.6 kB / 462.9 MB, free: 0.8945 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5417, allocations: 0 / 462.9 MB, free: 0.8945 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0008953/0.5426, allocations: 96.89 kB / 463 MB, free: 0.8008 MB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002454/0.5428, allocations: 107.2 kB / 463.1 MB, free: 0.6875 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001207/0.544, allocations: 0.4997 MB / 463.6 MB, free: 172 kB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5441, allocations: 0 / 463.6 MB, free: 172 kB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007705/0.5449, allocations: 395.5 kB / 464 MB, free: 15.76 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.5452, allocations: 11.48 kB / 464 MB, free: 15.74 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001519/0.5468, allocations: 465.5 kB / 464.4 MB, free: 15.26 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004866/0.5473, allocations: 0.7879 MB / 465.2 MB, free: 14.45 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.5474, allocations: 23.42 kB / 465.2 MB, free: 14.42 MB / 363.1 MB Notification: Performance of SimCode: time 1.132e-06/0.5474, allocations: 4 kB / 465.3 MB, free: 14.42 MB / 363.1 MB Notification: Performance of Templates: time 0.01314/0.5606, allocations: 5.752 MB / 471 MB, free: 8.68 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SaturatedInductor/SaturatedInductor.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches