Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007763/0.0007764, allocations: 92.34 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008629/0.000863, allocations: 201.1 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 227.7 MB / 246.8 MB, free: 9.664 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000316/0.000316, allocations: 4.281 kB / 307.7 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1006, allocations: 51.52 MB / 359.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.002943/0.1036, allocations: 2.516 MB / 361.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.1048, allocations: 0.779 MB / 362.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.105, allocations: 8 kB / 362.6 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.1052, allocations: 59.55 kB / 362.6 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000249/0.1054, allocations: 79.44 kB / 362.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002213/0.1056, allocations: 95.91 kB / 362.8 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003425/0.106, allocations: 378.5 kB / 363.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.1062, allocations: 111.6 kB / 363.3 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002344/0.1064, allocations: 135.4 kB / 363.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001802/0.1066, allocations: 155.2 kB / 363.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.685e-05/0.1067, allocations: 20 kB / 363.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.209e-05/0.1067, allocations: 20 kB / 363.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.283e-05/0.1068, allocations: 63.69 kB / 363.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000152/0.1069, allocations: 184.8 kB / 363.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003097/0.1072, allocations: 382.6 kB / 364.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1072, allocations: 0 / 364.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1073, allocations: 4 kB / 364.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.1073, allocations: 0 / 364.2 MB, free: 8.09 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001057/0.1083, allocations: 0.612 MB / 364.8 MB, free: 7.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.1084, allocations: 11.97 kB / 364.8 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.477e-05/0.1085, allocations: 40.47 kB / 364.9 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002833/0.1088, allocations: 279.4 kB / 365.1 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.1088, allocations: 25.03 kB / 365.2 MB, free: 7.043 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.573e-05/0.1088, allocations: 36.36 kB / 365.2 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000598/0.1095, allocations: 298.4 kB / 365.5 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.1095, allocations: 0 / 365.5 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.76e-05/0.1095, allocations: 16 kB / 365.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.1095, allocations: 8 kB / 365.5 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000643/0.1102, allocations: 270.5 kB / 365.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.1118, allocations: 1.124 MB / 366.9 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003868/0.1122, allocations: 170.3 kB / 367.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001883/0.1124, allocations: 68.83 kB / 367.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.1124, allocations: 4 kB / 367.1 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.1125, allocations: 34.56 kB / 367.2 MB, free: 4.906 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.1125, allocations: 0 / 367.2 MB, free: 4.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.002138/0.1146, allocations: 0.6778 MB / 367.8 MB, free: 4.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.1147, allocations: 59.39 kB / 367.9 MB, free: 4.148 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002789/0.115, allocations: 279 kB / 368.2 MB, free: 3.863 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.115, allocations: 29.7 kB / 368.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.1151, allocations: 235.4 kB / 368.4 MB, free: 3.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.984e-05/0.1152, allocations: 74.95 kB / 368.5 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.604e-05/0.1152, allocations: 29.7 kB / 368.5 MB, free: 3.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1154, allocations: 338.8 kB / 368.9 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003056/0.1157, allocations: 107.9 kB / 369 MB, free: 3.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003704/0.1161, allocations: 215.9 kB / 369.2 MB, free: 2.777 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006507/0.1167, allocations: 319 kB / 369.5 MB, free: 2.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.1167, allocations: 4 kB / 369.5 MB, free: 2.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009211/0.1177, allocations: 421.2 kB / 369.9 MB, free: 2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.1177, allocations: 8 kB / 369.9 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.1177, allocations: 4 kB / 369.9 MB, free: 1.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000272/0.118, allocations: 61.67 kB / 370 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003533/0.1183, allocations: 83.83 kB / 370.1 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1676/0.2859, allocations: 2.627 MB / 372.7 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004085/0.2864, allocations: 29.98 kB / 372.7 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.791e-05/0.2864, allocations: 15.62 kB / 372.7 MB, free: 18.29 MB / 302.1 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 (37): * Single equations (assignments): 35 * 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): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001886/0.2866, allocations: 150.2 kB / 372.9 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.037e-05/0.2867, allocations: 31.75 kB / 372.9 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.454e-05/0.2867, allocations: 34.59 kB / 373 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.2868, allocations: 7.266 kB / 373 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.2868, allocations: 0.6562 kB / 373 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.2868, allocations: 2.25 kB / 373 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004307/0.2872, allocations: 333.1 kB / 373.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.2872, allocations: 7.578 kB / 373.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.2875, allocations: 47.38 kB / 373.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000192/0.2877, allocations: 58.77 kB / 373.4 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.2877, allocations: 4.641 kB / 373.4 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001439/0.2891, allocations: 2.626 MB / 376 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2892, allocations: 3.75 kB / 376 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008189/0.29, allocations: 397.6 kB / 376.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-05/0.2901, allocations: 103.4 kB / 376.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.086e-05/0.2901, allocations: 6.406 kB / 376.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.2903, allocations: 18.5 kB / 376.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.803e-05/0.2904, allocations: 21.61 kB / 376.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.2904, allocations: 14.55 kB / 376.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002304/0.2907, allocations: 199.7 kB / 376.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2907, allocations: 0 / 376.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004357/0.2911, allocations: 70.5 kB / 376.8 MB, free: 15.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001143/0.2912, allocations: 108.2 kB / 377 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.2923, allocations: 0.4994 MB / 377.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2923, allocations: 1.531 kB / 377.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000511/0.2929, allocations: 357.1 kB / 377.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/0.2933, allocations: 32.69 kB / 377.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.2943, allocations: 0.7234 MB / 378.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002294/0.2946, allocations: 0.7854 MB / 379.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.2947, allocations: 27.92 kB / 379.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.737e-05/0.2948, allocations: 20.77 kB / 379.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2948, allocations: 0.9688 kB / 379.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of Templates: time 0.006595/0.3014, allocations: 2.562 MB / 382 MB, free: 13.31 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches