Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001353/0.001353, allocations: 120.2 kB / 18.49 MB, free: 4.559 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.00137/0.00137, allocations: 214.2 kB / 21.46 MB, free: 1.605 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.485/1.485, allocations: 230.5 MB / 254.7 MB, free: 15.19 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.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002209/0.002209, allocations: 67.89 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1104, allocations: 53.37 MB / 427.1 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.007356/0.1177, allocations: 5.078 MB / 432.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004683/0.1224, allocations: 2.168 MB / 434.3 MB, free: 13.44 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008822/0.1233, allocations: 20 kB / 434.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004144/0.1274, allocations: 1.407 MB / 435.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001808/0.1292, allocations: 436 kB / 436.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003004/0.1322, allocations: 1.224 MB / 437.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001559/0.1338, allocations: 0.7316 MB / 438.1 MB, free: 9.625 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001269/0.1351, allocations: 0.4973 MB / 438.6 MB, free: 9.117 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007469/0.1358, allocations: 350.8 kB / 439 MB, free: 8.773 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007751/0.1366, allocations: 426.3 kB / 439.4 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002271/0.1368, allocations: 68 kB / 439.4 MB, free: 8.289 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001279/0.1381, allocations: 407.6 kB / 439.8 MB, free: 7.891 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000234/0.1383, allocations: 163.4 kB / 440 MB, free: 7.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006549/0.139, allocations: 382.1 kB / 440.4 MB, free: 7.355 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002522/0.1415, allocations: 1.206 MB / 441.6 MB, free: 6.145 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1415, allocations: 4 kB / 441.6 MB, free: 6.141 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1415, allocations: 3.938 kB / 441.6 MB, free: 6.137 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.867e-05/0.1415, allocations: 0 / 441.6 MB, free: 6.137 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.00548/0.147, allocations: 1.477 MB / 443.1 MB, free: 4.605 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.1471, allocations: 8.031 kB / 443.1 MB, free: 4.598 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.812e-05/0.1471, allocations: 22.19 kB / 443.1 MB, free: 4.578 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002774/0.1474, allocations: 131.4 kB / 443.2 MB, free: 4.441 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0029/0.1503, allocations: 368.1 kB / 443.6 MB, free: 4.082 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004031/0.1507, allocations: 264.1 kB / 443.8 MB, free: 3.781 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.1508, allocations: 66.38 kB / 443.9 MB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002836/0.1511, allocations: 84.31 kB / 444 MB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002332/0.1534, allocations: 0.8796 MB / 444.9 MB, free: 2.742 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.193e-05/0.1535, allocations: 3.953 kB / 444.9 MB, free: 2.738 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.1536, allocations: 36 kB / 444.9 MB, free: 2.703 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.279e-05/0.1536, allocations: 20 kB / 444.9 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002108/0.1557, allocations: 0.7886 MB / 445.7 MB, free: 1.891 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2228/0.3785, allocations: 3.006 MB / 448.7 MB, free: 22.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.3797, allocations: 0.9576 MB / 449.7 MB, free: 21.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004726/0.3802, allocations: 218.8 kB / 449.9 MB, free: 21.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001332/0.3803, allocations: 181.2 kB / 450.1 MB, free: 21.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.3803, allocations: 38.69 kB / 450.1 MB, free: 21.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 3.026e-06/0.3803, allocations: 0 / 450.1 MB, free: 21.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.007524/0.3879, allocations: 2.396 MB / 452.5 MB, free: 20.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/0.3879, allocations: 86.45 kB / 452.6 MB, free: 20.67 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003932/0.3883, allocations: 302.3 kB / 452.9 MB, free: 20.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.894e-05/0.3883, allocations: 39.61 kB / 452.9 MB, free: 20.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.3885, allocations: 370.4 kB / 453.3 MB, free: 20.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.3887, allocations: 226.2 kB / 453.5 MB, free: 20.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002238/0.3889, allocations: 149.4 kB / 453.7 MB, free: 20.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.007e-05/0.389, allocations: 352 kB / 454 MB, free: 19.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007603/0.3897, allocations: 268 kB / 454.3 MB, free: 19.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008732/0.3906, allocations: 0.5032 MB / 454.8 MB, free: 19.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001698/0.3923, allocations: 0.8067 MB / 455.6 MB, free: 18.76 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.3923, allocations: 3.484 kB / 455.6 MB, free: 18.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002278/0.3946, allocations: 0.8983 MB / 456.5 MB, free: 18.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.3946, allocations: 8.031 kB / 456.5 MB, free: 18.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.3946, allocations: 8.625 kB / 456.5 MB, free: 18.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002911/0.3949, allocations: 63.83 kB / 456.5 MB, free: 18.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008719/0.3958, allocations: 202.1 kB / 456.7 MB, free: 18.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/0.3974, allocations: 2.866 MB / 459.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007062/0.3981, allocations: 57.67 kB / 459.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.915e-05/0.3982, allocations: 38.45 kB / 459.7 MB, free: 15.5 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.0003163/0.3985, allocations: 224.2 kB / 459.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.3986, allocations: 48.56 kB / 460 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/0.4005, allocations: 0.726 MB / 460.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.4006, allocations: 5.469 kB / 460.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.4006, allocations: 5.344 kB / 460.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.4006, allocations: 4.359 kB / 460.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002778/0.4033, allocations: 1.407 MB / 462.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.4034, allocations: 1.344 kB / 462.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006746/0.404, allocations: 132.4 kB / 462.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001944/0.4042, allocations: 58.55 kB / 462.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.118e-05/0.4043, allocations: 16.45 kB / 462.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001425/0.4057, allocations: 2.848 MB / 465.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4057, allocations: 5.656 kB / 465.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002541/0.4082, allocations: 1.078 MB / 466.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/0.4085, allocations: 159 kB / 466.4 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.263e-05/0.4085, allocations: 14.14 kB / 466.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004937/0.409, allocations: 52.41 kB / 466.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.4092, allocations: 47.64 kB / 466.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.07e-05/0.4092, allocations: 20.97 kB / 466.5 MB, free: 10.69 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002208/0.4094, allocations: 206 kB / 466.7 MB, free: 10.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4094, allocations: 0 / 466.7 MB, free: 10.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008622/0.4103, allocations: 179.1 kB / 466.9 MB, free: 10.55 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.002973/0.4133, allocations: 1.677 MB / 468.6 MB, free: 9.508 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.4155, allocations: 0.8834 MB / 469.5 MB, free: 9.074 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.4155, allocations: 1.062 kB / 469.5 MB, free: 9.074 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009807/0.4165, allocations: 0.5181 MB / 470 MB, free: 8.762 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005245/0.417, allocations: 46.8 kB / 470 MB, free: 8.734 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008847/0.4258, allocations: 5.072 MB / 475.1 MB, free: 5.609 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003912/0.4262, allocations: 0.8791 MB / 476 MB, free: 4.906 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003875/0.4266, allocations: 89.52 kB / 476.1 MB, free: 4.879 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003238/0.427, allocations: 229.6 kB / 476.3 MB, free: 4.711 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.427, allocations: 0 / 476.3 MB, free: 4.711 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05485/0.4818, allocations: 11.43 MB / 487.7 MB, free: 304 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/13.87, allocations: 18.42 kB / 487.8 MB, free: 292 kB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.348458214022685]