Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.BasicComponents.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.BasicComponents,tolerance=1e-05,outputFormat="mat",numberOfIntervals=9332,variableFilter="time|converter.Phi|converter.i|converter1.i|eddyCurrent.Phi|leakageWithCoefficient.port_p.Phi",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.BasicComponents") translateModel(ModelicaTest.Magnetic.FluxTubes.BasicComponents,tolerance=1e-05,outputFormat="mat",numberOfIntervals=9332,variableFilter="time|converter.Phi|converter.i|converter1.i|eddyCurrent.Phi|leakageWithCoefficient.port_p.Phi",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.BasicComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001706/0.001706, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.684/1.684, allocations: 226.6 MB / 243.4 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008529/0.0008531, allocations: 98.09 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2943/0.2943, allocations: 44.82 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002704/0.0002705, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2858, allocations: 62.95 MB / 0.5159 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.BasicComponents): time 0.002556/0.2884, allocations: 3.014 MB / 0.5188 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009916/0.2894, allocations: 0.7913 MB / 0.5196 GB, free: 34.46 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.2896, allocations: 8.781 kB / 0.5196 GB, free: 34.46 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.2897, allocations: 51.97 kB / 0.5196 GB, free: 34.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001749/0.2899, allocations: 109.2 kB / 0.5197 GB, free: 34.36 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.2901, allocations: 100.2 kB / 0.5198 GB, free: 34.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003269/0.2905, allocations: 487.7 kB / 0.5203 GB, free: 34.05 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002616/0.2907, allocations: 211.1 kB / 0.5205 GB, free: 33.94 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002096/0.291, allocations: 180.4 kB / 0.5207 GB, free: 33.87 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001746/0.2911, allocations: 193 kB / 0.5209 GB, free: 33.78 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.237e-05/0.2912, allocations: 25.16 kB / 0.5209 GB, free: 33.78 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.606e-05/0.2913, allocations: 24.53 kB / 0.5209 GB, free: 33.78 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.278e-05/0.2913, allocations: 81.66 kB / 0.521 GB, free: 33.73 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.2915, allocations: 232.5 kB / 0.5212 GB, free: 33.58 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002492/0.2917, allocations: 423.7 kB / 0.5216 GB, free: 33.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2917, allocations: 0 / 0.5216 GB, free: 33.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2917, allocations: 0 / 0.5216 GB, free: 33.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.2918, allocations: 0 / 0.5216 GB, free: 33.48 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.0009661/0.2927, allocations: 0.6964 MB / 0.5223 GB, free: 32.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.2928, allocations: 8.594 kB / 0.5223 GB, free: 32.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.39e-05/0.2929, allocations: 58.62 kB / 0.5224 GB, free: 32.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002749/0.2931, allocations: 313.2 kB / 0.5227 GB, free: 32.64 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.2932, allocations: 37.03 kB / 0.5227 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.388e-05/0.2932, allocations: 45.28 kB / 0.5227 GB, free: 32.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006578/0.2939, allocations: 473.5 kB / 0.5232 GB, free: 32.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.2939, allocations: 4 kB / 0.5232 GB, free: 32.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.686e-05/0.294, allocations: 18.97 kB / 0.5232 GB, free: 32.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.294, allocations: 11.5 kB / 0.5232 GB, free: 32.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000607/0.2946, allocations: 335.6 kB / 0.5235 GB, free: 32.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.2965, allocations: 1.696 MB / 0.5252 GB, free: 31.1 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000475/0.2969, allocations: 247.6 kB / 0.5254 GB, free: 30.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002713/0.2972, allocations: 133.3 kB / 0.5256 GB, free: 30.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.2973, allocations: 2.562 kB / 0.5256 GB, free: 30.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.696e-05/0.2973, allocations: 45.41 kB / 0.5256 GB, free: 30.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.833e-06/0.2973, allocations: 0 / 0.5256 GB, free: 30.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002383/0.2997, allocations: 1.368 MB / 0.5269 GB, free: 29.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.653e-05/0.2997, allocations: 83.8 kB / 0.527 GB, free: 29.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/0.2999, allocations: 258.7 kB / 0.5273 GB, free: 29.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.3, allocations: 32.23 kB / 0.5273 GB, free: 29.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.605e-05/0.3, allocations: 254.5 kB / 0.5275 GB, free: 29.46 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.506e-05/0.3001, allocations: 131.1 kB / 0.5277 GB, free: 29.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.577e-05/0.3001, allocations: 6.562 kB / 0.5277 GB, free: 29.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.129e-05/0.3002, allocations: 339.9 kB / 0.528 GB, free: 29.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002288/0.3004, allocations: 111.6 kB / 0.5281 GB, free: 28.99 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002726/0.3007, allocations: 216.8 kB / 0.5283 GB, free: 28.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005111/0.3012, allocations: 341 kB / 0.5286 GB, free: 28.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3012, allocations: 0 / 0.5286 GB, free: 28.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006867/0.3019, allocations: 427.5 kB / 0.529 GB, free: 28.42 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.302, allocations: 5.469 kB / 0.529 GB, free: 28.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.302, allocations: 2.938 kB / 0.5291 GB, free: 28.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001237/0.3021, allocations: 37.02 kB / 0.5291 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000416/0.3025, allocations: 127.5 kB / 0.5292 GB, free: 28.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006869/0.3032, allocations: 1.337 MB / 0.5305 GB, free: 27.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002259/0.3035, allocations: 27.34 kB / 0.5305 GB, free: 27.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.3035, allocations: 16 kB / 0.5306 GB, free: 27.03 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (51): * Single equations (assignments): 50 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001479/0.3036, allocations: 165.8 kB / 0.5307 GB, free: 26.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.15e-05/0.3037, allocations: 37.59 kB / 0.5308 GB, free: 26.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.905e-05/0.3038, allocations: 39.45 kB / 0.5308 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.3038, allocations: 5.844 kB / 0.5308 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.3038, allocations: 3.844 kB / 0.5308 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3038, allocations: 0 / 0.5308 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008758/0.3047, allocations: 0.7095 MB / 0.5315 GB, free: 26.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.3047, allocations: 6.688 kB / 0.5315 GB, free: 26.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003738/0.3051, allocations: 102 kB / 0.5316 GB, free: 26.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.945e-05/0.3052, allocations: 23.67 kB / 0.5316 GB, free: 26.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.3052, allocations: 6.594 kB / 0.5316 GB, free: 26.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005595/0.3057, allocations: 1.328 MB / 0.5329 GB, free: 24.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3058, allocations: 2.531 kB / 0.5329 GB, free: 24.97 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007863/0.3066, allocations: 0.6167 MB / 0.5335 GB, free: 24.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.965e-05/0.3067, allocations: 114.7 kB / 0.5336 GB, free: 24.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.484e-05/0.3067, allocations: 10.62 kB / 0.5336 GB, free: 24.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002426/0.3069, allocations: 22.05 kB / 0.5337 GB, free: 24.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.898e-05/0.307, allocations: 30.44 kB / 0.5337 GB, free: 24.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.307, allocations: 12.84 kB / 0.5337 GB, free: 24.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001275/0.3072, allocations: 183.3 kB / 0.5339 GB, free: 24.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3072, allocations: 0 / 0.5339 GB, free: 24.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004064/0.3076, allocations: 92.53 kB / 0.534 GB, free: 24.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (converter.i,converter1.i,eddyCurrent.Phi) * 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 (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001197/0.3077, allocations: 106.8 kB / 0.5341 GB, free: 24.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006571/0.3084, allocations: 417.8 kB / 0.5345 GB, free: 24.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3084, allocations: 2.812 kB / 0.5345 GB, free: 24.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003344/0.3087, allocations: 259.6 kB / 0.5347 GB, free: 23.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004694/0.3092, allocations: 44.39 kB / 0.5348 GB, free: 23.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.3104, allocations: 1.166 MB / 0.5359 GB, free: 23.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001946/0.3107, allocations: 0.8119 MB / 0.5367 GB, free: 22.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.77e-05/0.3107, allocations: 33.59 kB / 0.5367 GB, free: 22.33 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.3108, allocations: 0 / 0.5367 GB, free: 22.33 MB / 378.7 MB Notification: Performance of Templates: time 0.007739/0.3185, allocations: 5.87 MB / 0.5425 GB, free: 21.82 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.BasicComponents.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.BasicComponents.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.BasicComponents --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.BasicComponents_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/BasicComponents/BasicComponents.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.BasicComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches