Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001156/0.001156, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001265/0.001265, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 59.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2435, allocations: 50.54 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004732/0.2483, allocations: 2.812 MB / 412.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.2496, allocations: 0.7828 MB / 412.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.2497, allocations: 4 kB / 412.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001939/0.2499, allocations: 71.31 kB / 412.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002529/0.2502, allocations: 99.23 kB / 413 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002413/0.2504, allocations: 111.8 kB / 413.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003865/0.2508, allocations: 390.5 kB / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002629/0.2511, allocations: 130.9 kB / 413.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003135/0.2514, allocations: 159.4 kB / 413.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002254/0.2517, allocations: 171.2 kB / 414 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.809e-05/0.2517, allocations: 32 kB / 414 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.848e-05/0.2518, allocations: 36 kB / 414 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.765e-05/0.2519, allocations: 75.75 kB / 414.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.252, allocations: 175.1 kB / 414.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004022/0.2524, allocations: 399.7 kB / 414.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.2524, allocations: 3.984 kB / 414.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2525, allocations: 0 / 414.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.2525, allocations: 0 / 414.7 MB, free: 12.16 MB / 334.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.00107/0.2535, allocations: 0.6431 MB / 415.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.2536, allocations: 12.03 kB / 415.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.475e-05/0.2537, allocations: 32.56 kB / 415.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003449/0.254, allocations: 276.5 kB / 415.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.587e-05/0.2541, allocations: 25.03 kB / 415.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.856e-05/0.2541, allocations: 36.31 kB / 415.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005715/0.2547, allocations: 290.4 kB / 416 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.2547, allocations: 0 / 416 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.095e-05/0.2548, allocations: 16 kB / 416 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.2548, allocations: 8 kB / 416 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005858/0.2554, allocations: 246.5 kB / 416.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.257, allocations: 1.116 MB / 417.3 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003504/0.2574, allocations: 150.5 kB / 417.5 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.2576, allocations: 68.81 kB / 417.6 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.2576, allocations: 0 / 417.6 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.069e-05/0.2576, allocations: 34.56 kB / 417.6 MB, free: 9.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.102e-06/0.2576, allocations: 3.938 kB / 417.6 MB, free: 9.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001841/0.2595, allocations: 0.5932 MB / 418.2 MB, free: 8.406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.2595, allocations: 55.41 kB / 418.2 MB, free: 8.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.2598, allocations: 278.6 kB / 418.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.2598, allocations: 29.7 kB / 418.5 MB, free: 8.023 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.26, allocations: 227.4 kB / 418.8 MB, free: 7.797 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.26, allocations: 71 kB / 418.8 MB, free: 7.727 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.2601, allocations: 69.39 kB / 418.9 MB, free: 7.652 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.2602, allocations: 338.8 kB / 419.2 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002566/0.2605, allocations: 95.88 kB / 419.3 MB, free: 7.219 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003039/0.2608, allocations: 188.2 kB / 419.5 MB, free: 6.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005555/0.2614, allocations: 309.1 kB / 419.8 MB, free: 6.645 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2614, allocations: 0 / 419.8 MB, free: 6.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007909/0.2622, allocations: 393.3 kB / 420.2 MB, free: 6.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.2622, allocations: 7.984 kB / 420.2 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.2622, allocations: 4 kB / 420.2 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002361/0.2625, allocations: 61.62 kB / 420.3 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003172/0.2628, allocations: 71.89 kB / 420.3 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001988/0.2648, allocations: 2.84 MB / 423.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002548/0.2651, allocations: 23.98 kB / 423.2 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.2651, allocations: 12 kB / 423.2 MB, free: 2.941 MB / 334.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.0001429/0.2653, allocations: 153.7 kB / 423.4 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.542e-05/0.2653, allocations: 27.62 kB / 423.4 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.558e-05/0.2654, allocations: 38.23 kB / 423.4 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.2654, allocations: 4 kB / 423.4 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2654, allocations: 0 / 423.4 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.2654, allocations: 3.984 kB / 423.4 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003608/0.2658, allocations: 333.4 kB / 423.8 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2658, allocations: 0 / 423.8 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000202/0.266, allocations: 39.91 kB / 423.8 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001487/0.2662, allocations: 57.81 kB / 423.9 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.2662, allocations: 8 kB / 423.9 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001956/0.2682, allocations: 2.83 MB / 426.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2682, allocations: 0 / 426.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006737/0.2688, allocations: 372.7 kB / 427.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.997e-05/0.2689, allocations: 108.7 kB / 427.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.454e-05/0.269, allocations: 0 / 427.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.2692, allocations: 19.97 kB / 427.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.201e-05/0.2692, allocations: 19.97 kB / 427.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.2692, allocations: 4 kB / 427.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001768/0.2694, allocations: 186 kB / 427.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2694, allocations: 4 kB / 427.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000397/0.2698, allocations: 79.94 kB / 427.5 MB, free: 14.3 MB / 350.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.0001388/0.27, allocations: 99.23 kB / 427.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009012/0.2709, allocations: 481 kB / 428 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2709, allocations: 0 / 428 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004767/0.2714, allocations: 354 kB / 428.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003381/0.2717, allocations: 31.86 kB / 428.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.2728, allocations: 0.5378 MB / 428.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003798/0.2732, allocations: 0.7714 MB / 429.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000124/0.2733, allocations: 30.27 kB / 429.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.256e-05/0.2734, allocations: 19.44 kB / 429.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2734, allocations: 3.938 kB / 429.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of Templates: time 0.006069/0.2794, allocations: 2.77 MB / 432.5 MB, free: 9.117 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches