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.001683/0.001683, allocations: 114.3 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002028/0.002028, allocations: 210 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001222, allocations: 64.09 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2222, allocations: 50.54 MB / 409.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004044/0.2263, allocations: 2.839 MB / 412.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.2277, allocations: 0.7906 MB / 413.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002014/0.2279, allocations: 4 kB / 413.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.2282, allocations: 63.42 kB / 413.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003036/0.2285, allocations: 107.1 kB / 413.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.2288, allocations: 107.8 kB / 413.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004281/0.2292, allocations: 398.5 kB / 414.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002275/0.2295, allocations: 134.9 kB / 414.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003151/0.2298, allocations: 159.3 kB / 414.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002229/0.23, allocations: 175.2 kB / 414.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.778e-05/0.2301, allocations: 39.94 kB / 414.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.997e-05/0.2302, allocations: 32 kB / 414.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.334e-05/0.2303, allocations: 83.62 kB / 414.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.2304, allocations: 175.1 kB / 415 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000377/0.2308, allocations: 407.6 kB / 415.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.2308, allocations: 0 / 415.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2308, allocations: 3.938 kB / 415.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.2308, allocations: 0 / 415.4 MB, free: 12.05 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.001183/0.232, allocations: 0.647 MB / 416.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2321, allocations: 12.03 kB / 416.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.032e-05/0.2322, allocations: 36.47 kB / 416.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003576/0.2325, allocations: 279.4 kB / 416.4 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.671e-05/0.2326, allocations: 29.03 kB / 416.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.789e-05/0.2326, allocations: 28.38 kB / 416.4 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006171/0.2332, allocations: 294.3 kB / 416.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.2333, allocations: 3.984 kB / 416.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.016e-05/0.2333, allocations: 16 kB / 416.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.2333, allocations: 8 kB / 416.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006207/0.2339, allocations: 254.5 kB / 417 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001701/0.2356, allocations: 1.116 MB / 418.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003826/0.236, allocations: 154.5 kB / 418.3 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.2362, allocations: 64.83 kB / 418.3 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.2363, allocations: 0 / 418.3 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.2363, allocations: 42.55 kB / 418.4 MB, free: 8.879 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.122e-06/0.2363, allocations: 4 kB / 418.4 MB, free: 8.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002106/0.2384, allocations: 0.5931 MB / 419 MB, free: 8.273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.2385, allocations: 55.41 kB / 419 MB, free: 8.207 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002975/0.2388, allocations: 286.9 kB / 419.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.2388, allocations: 29.69 kB / 419.3 MB, free: 7.883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.2389, allocations: 227.5 kB / 419.6 MB, free: 7.656 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.175e-05/0.239, allocations: 74.92 kB / 419.6 MB, free: 7.582 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.326e-05/0.2391, allocations: 65.61 kB / 419.7 MB, free: 7.512 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.2392, allocations: 338.8 kB / 420 MB, free: 7.172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002917/0.2395, allocations: 95.94 kB / 420.1 MB, free: 7.078 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003458/0.2399, allocations: 203.9 kB / 420.3 MB, free: 6.832 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006235/0.2405, allocations: 309.1 kB / 420.6 MB, free: 6.488 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2405, allocations: 0 / 420.6 MB, free: 6.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008751/0.2414, allocations: 405.2 kB / 421 MB, free: 6.082 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2414, allocations: 4 kB / 421 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.2414, allocations: 4 kB / 421 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002435/0.2417, allocations: 61.73 kB / 421.1 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003216/0.242, allocations: 75.89 kB / 421.2 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001926/0.244, allocations: 2.833 MB / 424 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002819/0.2442, allocations: 19.98 kB / 424 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.2443, allocations: 16 kB / 424 MB, free: 2.785 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.0001568/0.2444, allocations: 161.7 kB / 424.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.382e-05/0.2445, allocations: 27.62 kB / 424.2 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.314e-05/0.2446, allocations: 34.2 kB / 424.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.2446, allocations: 0 / 424.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.227e-06/0.2446, allocations: 0 / 424.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2446, allocations: 4 kB / 424.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003569/0.245, allocations: 333.4 kB / 424.6 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.245, allocations: 0 / 424.6 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002206/0.2452, allocations: 39.97 kB / 424.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001565/0.2454, allocations: 57.81 kB / 424.7 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.2454, allocations: 8 kB / 424.7 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001832/0.2472, allocations: 2.838 MB / 427.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2473, allocations: 0 / 427.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007117/0.248, allocations: 368.8 kB / 427.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.522e-05/0.2481, allocations: 104.8 kB / 428 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.2481, allocations: 4 kB / 428 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.2483, allocations: 15.98 kB / 428 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.878e-05/0.2484, allocations: 23.97 kB / 428 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.2484, allocations: 7.938 kB / 428 MB, free: 14.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000193/0.2486, allocations: 202 kB / 428.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2486, allocations: 0 / 428.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003883/0.249, allocations: 76 kB / 428.3 MB, free: 14.12 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.0001273/0.2492, allocations: 95.25 kB / 428.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009141/0.2501, allocations: 493.7 kB / 428.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.2501, allocations: 0 / 428.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004902/0.2506, allocations: 360.9 kB / 429.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.2509, allocations: 20.89 kB / 429.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.252, allocations: 0.5821 MB / 429.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.2523, allocations: 0.7714 MB / 430.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.42e-05/0.2524, allocations: 31.42 kB / 430.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2524, allocations: 0 / 430.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of Templates: time 0.00782/0.2603, allocations: 6.108 MB / 436.7 MB, free: 5.559 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/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