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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00083/0.00083, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008059/0.0008059, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9112/0.9112, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.908e-05/2.073e-05, allocations: 3.125 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.003167/0.003188, allocations: 2.687 MB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.004216, allocations: 0.7516 MB / 328 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.004348, allocations: 8 kB / 328 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.004525, allocations: 71.3 kB / 328 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002097/0.004735, allocations: 99.17 kB / 328.1 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002/0.004935, allocations: 119.7 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002835/0.005219, allocations: 414.2 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.005386, allocations: 94.98 kB / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003137/0.0057, allocations: 247.4 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.005822, allocations: 127.6 kB / 329.1 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.343e-05/0.005855, allocations: 32 kB / 329.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.134e-05/0.005887, allocations: 36 kB / 329.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.956e-05/0.005926, allocations: 71.73 kB / 329.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.994e-05/0.006006, allocations: 127.7 kB / 329.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002986/0.006305, allocations: 414.6 kB / 329.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.006308, allocations: 3.984 kB / 329.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.006309, allocations: 0 / 329.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.006314, allocations: 0 / 329.8 MB, free: 10.61 MB / 298.7 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.0007148/0.007029, allocations: 0.5752 MB / 330.4 MB, free: 10 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.007068, allocations: 15.98 kB / 330.4 MB, free: 9.988 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.435e-05/0.007123, allocations: 66.72 kB / 330.4 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.715e-05/0.00717, allocations: 40.7 kB / 330.5 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.007432, allocations: 213.2 kB / 330.7 MB, free: 9.641 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.007456, allocations: 24.97 kB / 330.7 MB, free: 9.613 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.649e-05/0.007492, allocations: 32.38 kB / 330.7 MB, free: 9.582 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003688/0.007861, allocations: 294.6 kB / 331 MB, free: 9.289 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.007872, allocations: 192 / 331 MB, free: 9.289 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.007892, allocations: 16.12 kB / 331 MB, free: 9.273 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.0079, allocations: 8 kB / 331 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003588/0.008259, allocations: 254.5 kB / 331.3 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.009312, allocations: 0.9215 MB / 332.2 MB, free: 8.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000229/0.009541, allocations: 142.5 kB / 332.4 MB, free: 7.871 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.99e-05/0.009641, allocations: 68.81 kB / 332.4 MB, free: 7.801 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.009663, allocations: 0 / 332.4 MB, free: 7.801 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.009685, allocations: 38.5 kB / 332.5 MB, free: 7.754 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.774e-06/0.009687, allocations: 7.984 kB / 332.5 MB, free: 7.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001139/0.01083, allocations: 0.5981 MB / 333.1 MB, free: 7.137 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.915e-05/0.01086, allocations: 55.41 kB / 333.1 MB, free: 7.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002041/0.01106, allocations: 288.1 kB / 333.4 MB, free: 6.777 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.01108, allocations: 33.7 kB / 333.4 MB, free: 6.738 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.799e-05/0.01117, allocations: 236 kB / 333.7 MB, free: 6.504 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.722e-05/0.01123, allocations: 83.31 kB / 333.7 MB, free: 6.422 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.48e-05/0.0113, allocations: 57.66 kB / 333.8 MB, free: 6.359 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.565e-05/0.01138, allocations: 342.8 kB / 334.1 MB, free: 6.016 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.01154, allocations: 99.92 kB / 334.2 MB, free: 5.918 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.01174, allocations: 199.9 kB / 334.4 MB, free: 5.676 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000342/0.01208, allocations: 305.1 kB / 334.7 MB, free: 5.336 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.01208, allocations: 3.938 kB / 334.7 MB, free: 5.332 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000483/0.01256, allocations: 401 kB / 335.1 MB, free: 4.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.01258, allocations: 8 kB / 335.1 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.01258, allocations: 4 kB / 335.1 MB, free: 4.918 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001768/0.01276, allocations: 62.08 kB / 335.2 MB, free: 4.852 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.01293, allocations: 71.89 kB / 335.3 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.01427, allocations: 2.618 MB / 337.9 MB, free: 1.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.01441, allocations: 19.98 kB / 337.9 MB, free: 1.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.01443, allocations: 12 kB / 337.9 MB, free: 1.898 MB / 298.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 (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.0001145/0.01454, allocations: 157.7 kB / 338.1 MB, free: 1.734 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.041e-05/0.01457, allocations: 27.81 kB / 338.1 MB, free: 1.707 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.683e-05/0.01462, allocations: 38.36 kB / 338.1 MB, free: 1.668 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.01462, allocations: 0 / 338.1 MB, free: 1.668 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.01463, allocations: 4 kB / 338.1 MB, free: 1.664 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.01463, allocations: 3.984 kB / 338.1 MB, free: 1.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.01486, allocations: 276.5 kB / 338.4 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.01487, allocations: 8 kB / 338.4 MB, free: 1.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.225e-05/0.01496, allocations: 35.97 kB / 338.5 MB, free: 1.305 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001053/0.01507, allocations: 57.67 kB / 338.5 MB, free: 1.242 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.01508, allocations: 4 kB / 338.5 MB, free: 1.238 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001247/0.01632, allocations: 2.615 MB / 341.1 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.01633, allocations: 0 / 341.1 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004148/0.01674, allocations: 375.8 kB / 341.5 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.902e-05/0.01677, allocations: 31.8 kB / 341.5 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.01679, allocations: 7.938 kB / 341.5 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.916e-05/0.01689, allocations: 20.05 kB / 341.6 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.902e-05/0.01694, allocations: 19.95 kB / 341.6 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.01695, allocations: 7.938 kB / 341.6 MB, free: 13.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001488/0.0171, allocations: 203.1 kB / 341.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0171, allocations: 0 / 341.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000274/0.01738, allocations: 76 kB / 341.9 MB, free: 13.64 MB / 314.7 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.0006141/0.01799, allocations: 0.9012 MB / 342.8 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00055/0.01854, allocations: 477.1 kB / 343.2 MB, free: 12.22 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.01854, allocations: 0 / 343.2 MB, free: 12.22 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002523/0.01879, allocations: 342.3 kB / 343.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.01903, allocations: 36.92 kB / 343.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.02177, allocations: 3.038 MB / 346.6 MB, free: 8.617 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/0.02188, allocations: 164.8 kB / 346.8 MB, free: 8.441 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.188e-05/0.02197, allocations: 34.2 kB / 346.8 MB, free: 8.406 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.02208, allocations: 108.5 kB / 346.9 MB, free: 8.301 MB / 314.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02208, allocations: 0 / 346.9 MB, free: 8.301 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02002/0.0421, allocations: 6.559 MB / 353.5 MB, free: 1.922 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.424/7.466, allocations: 7.797 kB / 353.5 MB, free: 1.914 MB / 314.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.110859036445618]