Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.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.001713/0.001713, allocations: 120.1 kB / 18.49 MB, free: 4.566 MB / 14.72 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.001967/0.001967, allocations: 218.2 kB / 21.46 MB, free: 1.613 MB / 14.72 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 1.48/1.48, allocations: 230.4 MB / 254.7 MB, free: 15.2 MB / 206.1 MB " [Timeout remaining time 178] 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.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 63.91 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1113, allocations: 53.37 MB / 427.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.007078/0.1184, allocations: 5.115 MB / 432.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004018/0.1224, allocations: 2.187 MB / 434.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004234/0.1228, allocations: 16 kB / 434.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003402/0.1262, allocations: 1.396 MB / 435.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001254/0.1275, allocations: 435.2 kB / 436.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002489/0.1299, allocations: 1.218 MB / 437.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.131, allocations: 0.7472 MB / 438.2 MB, free: 9.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008935/0.1319, allocations: 0.4973 MB / 438.7 MB, free: 8.973 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006021/0.1325, allocations: 346.8 kB / 439 MB, free: 8.633 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005439/0.133, allocations: 434.3 kB / 439.4 MB, free: 8.207 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.636e-05/0.1331, allocations: 68 kB / 439.5 MB, free: 8.141 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009527/0.1341, allocations: 407.6 kB / 439.9 MB, free: 7.742 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.1342, allocations: 167.4 kB / 440.1 MB, free: 7.578 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003708/0.1346, allocations: 390.1 kB / 440.4 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001591/0.1362, allocations: 1.222 MB / 441.7 MB, free: 5.969 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1362, allocations: 0 / 441.7 MB, free: 5.969 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1362, allocations: 0 / 441.7 MB, free: 5.969 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.1362, allocations: 0 / 441.7 MB, free: 5.969 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004539/0.1407, allocations: 1.489 MB / 443.2 MB, free: 4.426 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.1408, allocations: 8.031 kB / 443.2 MB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.348e-05/0.1408, allocations: 22.19 kB / 443.2 MB, free: 4.398 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001535/0.141, allocations: 135.4 kB / 443.3 MB, free: 4.258 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002629/0.1436, allocations: 364.1 kB / 443.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003068/0.1439, allocations: 259.3 kB / 443.9 MB, free: 3.609 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.729e-05/0.144, allocations: 66.38 kB / 444 MB, free: 3.543 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.1441, allocations: 87.94 kB / 444.1 MB, free: 3.457 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.1459, allocations: 0.8757 MB / 445 MB, free: 2.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.1459, allocations: 7.938 kB / 445 MB, free: 2.562 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.314e-05/0.146, allocations: 36 kB / 445 MB, free: 2.527 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.017e-05/0.146, allocations: 20 kB / 445 MB, free: 2.508 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001868/0.1479, allocations: 0.7925 MB / 445.8 MB, free: 1.711 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1966/0.3445, allocations: 3.006 MB / 448.8 MB, free: 22.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.3456, allocations: 0.9596 MB / 449.8 MB, free: 21.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000456/0.346, allocations: 215.8 kB / 450 MB, free: 21.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000116/0.3461, allocations: 181 kB / 450.2 MB, free: 21.35 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.3462, allocations: 40.73 kB / 450.2 MB, free: 21.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.334e-06/0.3462, allocations: 1.406 kB / 450.2 MB, free: 21.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.007285/0.3535, allocations: 2.401 MB / 452.6 MB, free: 20.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.3535, allocations: 85.64 kB / 452.7 MB, free: 20.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003794/0.3539, allocations: 317.6 kB / 453 MB, free: 20.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.721e-05/0.3539, allocations: 35.11 kB / 453 MB, free: 20.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000196/0.3541, allocations: 376.8 kB / 453.4 MB, free: 20.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.3543, allocations: 225.5 kB / 453.6 MB, free: 20.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002162/0.3545, allocations: 146.1 kB / 453.8 MB, free: 19.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.278e-05/0.3546, allocations: 351.6 kB / 454.1 MB, free: 19.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007478/0.3553, allocations: 276.1 kB / 454.4 MB, free: 19.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00085/0.3562, allocations: 0.4991 MB / 454.9 MB, free: 19.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001598/0.3578, allocations: 0.8112 MB / 455.7 MB, free: 18.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.3578, allocations: 1.812 kB / 455.7 MB, free: 18.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00215/0.3599, allocations: 0.8978 MB / 456.6 MB, free: 18.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.3599, allocations: 7.719 kB / 456.6 MB, free: 18.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.36, allocations: 12.14 kB / 456.6 MB, free: 18.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002482/0.3602, allocations: 73.94 kB / 456.7 MB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008559/0.3611, allocations: 195.4 kB / 456.9 MB, free: 18.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001549/0.3626, allocations: 2.871 MB / 459.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006643/0.3633, allocations: 57.22 kB / 459.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.317e-05/0.3634, allocations: 43.66 kB / 459.8 MB, free: 15.42 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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.0003105/0.3637, allocations: 213.9 kB / 460 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.3638, allocations: 48.23 kB / 460.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001919/0.3657, allocations: 0.7231 MB / 460.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.3657, allocations: 6.656 kB / 460.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3657, allocations: 9.719 kB / 460.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.3657, allocations: 10.89 kB / 460.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002681/0.3684, allocations: 1.413 MB / 462.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.3684, allocations: 0 / 462.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006689/0.3691, allocations: 132.1 kB / 462.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001823/0.3692, allocations: 59.97 kB / 462.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.335e-05/0.3693, allocations: 16.84 kB / 462.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00136/0.3707, allocations: 2.847 MB / 465.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3707, allocations: 3.938 kB / 465.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002389/0.373, allocations: 1.083 MB / 466.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.3732, allocations: 172.9 kB / 466.6 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.106e-05/0.3733, allocations: 14.56 kB / 466.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004908/0.3738, allocations: 44 kB / 466.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.3739, allocations: 47.25 kB / 466.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.974e-05/0.374, allocations: 19.45 kB / 466.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002222/0.3742, allocations: 216.4 kB / 466.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3742, allocations: 4 kB / 466.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008288/0.375, allocations: 179.6 kB / 467.1 MB, free: 10.47 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (58): * Single equations (assignments): 56 * 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.002943/0.378, allocations: 1.676 MB / 468.7 MB, free: 9.426 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002079/0.38, allocations: 0.8796 MB / 469.6 MB, free: 8.996 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.38, allocations: 64 / 469.6 MB, free: 8.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009223/0.381, allocations: 0.5218 MB / 470.2 MB, free: 8.684 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.3814, allocations: 47.16 kB / 470.2 MB, free: 8.656 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008397/0.3898, allocations: 5.159 MB / 475.4 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.3902, allocations: 0.8811 MB / 476.2 MB, free: 4.781 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003731/0.3906, allocations: 86.84 kB / 476.3 MB, free: 4.754 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003721/0.391, allocations: 225.9 kB / 476.5 MB, free: 4.594 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.391, allocations: 0 / 476.5 MB, free: 4.594 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05513/0.4461, allocations: 11.58 MB / 488.1 MB, free: 100 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/13.8, allocations: 10.95 kB / 488.1 MB, free: 92 kB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.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: 16.28471862000879]