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.0009586/0.0009586, allocations: 202.1 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.28/1.28, allocations: 226.5 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007989/0.000799, allocations: 93.56 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1827/0.1827, allocations: 44.83 MB / 392 MB, free: 9.316 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002225/0.0002226, allocations: 8 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08351/0.08375, allocations: 62.96 MB / 0.5153 GB, free: 2.758 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.BasicComponents): time 0.1785/0.2622, allocations: 2.99 MB / 0.5183 GB, free: 9.859 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.2639, allocations: 0.7832 MB / 0.519 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003589/0.2643, allocations: 12.19 kB / 0.519 GB, free: 9.805 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.2645, allocations: 49.05 kB / 0.5191 GB, free: 9.785 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003972/0.2649, allocations: 109.5 kB / 0.5192 GB, free: 9.738 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.2654, allocations: 95.11 kB / 0.5193 GB, free: 9.734 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006335/0.266, allocations: 485.7 kB / 0.5197 GB, free: 9.613 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003479/0.2664, allocations: 182.9 kB / 0.5199 GB, free: 9.582 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004158/0.2668, allocations: 182.7 kB / 0.5201 GB, free: 9.539 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003274/0.2671, allocations: 198.4 kB / 0.5203 GB, free: 9.492 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.346e-05/0.2672, allocations: 26.42 kB / 0.5203 GB, free: 9.492 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.2673, allocations: 25.91 kB / 0.5203 GB, free: 9.492 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.854e-05/0.2674, allocations: 79.97 kB / 0.5204 GB, free: 9.477 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.2675, allocations: 109 kB / 0.5205 GB, free: 9.43 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005053/0.2681, allocations: 416.3 kB / 0.5209 GB, free: 9.395 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.2681, allocations: 0 / 0.5209 GB, free: 9.395 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2681, allocations: 0 / 0.5209 GB, free: 9.395 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.559e-05/0.2681, allocations: 0 / 0.5209 GB, free: 9.395 MB / 346.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.001244/0.2694, allocations: 0.7025 MB / 0.5216 GB, free: 8.898 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.2694, allocations: 8.781 kB / 0.5216 GB, free: 8.898 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001383/0.2695, allocations: 49.31 kB / 0.5216 GB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003958/0.27, allocations: 310.9 kB / 0.5219 GB, free: 8.625 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.528e-05/0.27, allocations: 37.69 kB / 0.522 GB, free: 8.625 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.663e-05/0.2701, allocations: 44.66 kB / 0.522 GB, free: 8.625 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009027/0.271, allocations: 470.7 kB / 0.5225 GB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.271, allocations: 5.125 kB / 0.5225 GB, free: 8.539 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.918e-05/0.271, allocations: 15.16 kB / 0.5225 GB, free: 8.539 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.2711, allocations: 11.72 kB / 0.5225 GB, free: 8.539 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008181/0.2719, allocations: 332.7 kB / 0.5228 GB, free: 8.535 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002369/0.2743, allocations: 1.704 MB / 0.5245 GB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005088/0.2748, allocations: 240.2 kB / 0.5247 GB, free: 7.285 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002994/0.2751, allocations: 139.5 kB / 0.5248 GB, free: 7.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.2751, allocations: 9.156 kB / 0.5248 GB, free: 7.227 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.679e-05/0.2752, allocations: 36.84 kB / 0.5249 GB, free: 7.184 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 2.024e-06/0.2752, allocations: 0 / 0.5249 GB, free: 7.184 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.002734/0.2779, allocations: 1.351 MB / 0.5262 GB, free: 6.273 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.444e-05/0.2779, allocations: 88.91 kB / 0.5263 GB, free: 6.172 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.2782, allocations: 260.5 kB / 0.5265 GB, free: 6.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.2782, allocations: 31.92 kB / 0.5266 GB, free: 5.984 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.2783, allocations: 259.5 kB / 0.5268 GB, free: 5.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.768e-05/0.2784, allocations: 122.2 kB / 0.5269 GB, free: 5.676 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.55e-05/0.2784, allocations: 9.469 kB / 0.5269 GB, free: 5.668 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.629e-05/0.2785, allocations: 340.3 kB / 0.5273 GB, free: 5.344 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002594/0.2788, allocations: 115.8 kB / 0.5274 GB, free: 5.305 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002917/0.2791, allocations: 216 kB / 0.5276 GB, free: 5.145 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002913/0.2794, allocations: 139.9 kB / 0.5277 GB, free: 5.086 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2794, allocations: 1.094 kB / 0.5277 GB, free: 5.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007866/0.2802, allocations: 428.2 kB / 0.5281 GB, free: 4.902 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.2802, allocations: 5.531 kB / 0.5281 GB, free: 4.902 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.2802, allocations: 3.594 kB / 0.5281 GB, free: 4.902 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001236/0.2803, allocations: 37.52 kB / 0.5282 GB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004576/0.2808, allocations: 121.5 kB / 0.5283 GB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006896/0.2815, allocations: 1.338 MB / 0.5296 GB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.2818, allocations: 21.91 kB / 0.5296 GB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.694e-05/0.2818, allocations: 19.75 kB / 0.5296 GB, free: 3.523 MB / 346.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.0001705/0.282, allocations: 166.1 kB / 0.5298 GB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.714e-05/0.282, allocations: 30.78 kB / 0.5298 GB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.17e-05/0.2821, allocations: 40 kB / 0.5299 GB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.2821, allocations: 3.062 kB / 0.5299 GB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.2821, allocations: 1.781 kB / 0.5299 GB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.2821, allocations: 6.75 kB / 0.5299 GB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009673/0.2831, allocations: 0.7192 MB / 0.5306 GB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2831, allocations: 0 / 0.5306 GB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003978/0.2835, allocations: 95.95 kB / 0.5307 GB, free: 2.836 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.356e-05/0.2836, allocations: 30.27 kB / 0.5307 GB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.2836, allocations: 12.17 kB / 0.5307 GB, free: 2.812 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005806/0.2842, allocations: 1.329 MB / 0.532 GB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.2842, allocations: 1.641 kB / 0.532 GB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008669/0.2851, allocations: 0.6114 MB / 0.5326 GB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.392e-05/0.2852, allocations: 124.9 kB / 0.5327 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.367e-05/0.2853, allocations: 8.156 kB / 0.5327 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002586/0.2855, allocations: 24.75 kB / 0.5327 GB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.545e-05/0.2856, allocations: 24.27 kB / 0.5328 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.2856, allocations: 8.484 kB / 0.5328 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001454/0.2858, allocations: 183.5 kB / 0.533 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2858, allocations: 224 / 0.533 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004246/0.2862, allocations: 92.25 kB / 0.533 GB, free: 0.832 MB / 346.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 9.122e-05/0.2863, allocations: 116 kB / 0.5332 GB, free: 0.7305 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007152/0.287, allocations: 410 kB / 0.5335 GB, free: 0.5273 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.287, allocations: 0 / 0.5335 GB, free: 0.5273 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003296/0.2874, allocations: 254.6 kB / 0.5338 GB, free: 384 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004657/0.2878, allocations: 51.58 kB / 0.5338 GB, free: 356 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.2893, allocations: 1.171 MB / 0.535 GB, free: 15.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003639/0.2897, allocations: 0.8085 MB / 0.5358 GB, free: 14.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.596e-05/0.2898, allocations: 34.77 kB / 0.5358 GB, free: 14.84 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2898, allocations: 0 / 0.5358 GB, free: 14.84 MB / 362.7 MB Notification: Performance of Templates: time 0.007584/0.2974, allocations: 5.892 MB / 0.5416 GB, free: 13.07 MB / 362.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