Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 115.7 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 190.7 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 47.92 kB / 366.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1127, allocations: 52.15 MB / 418.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006989/0.1197, allocations: 5.078 MB / 423.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003691/0.1234, allocations: 2.102 MB / 425.7 MB, free: 5.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002647/0.1237, allocations: 16 kB / 425.7 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003152/0.1268, allocations: 1.404 MB / 427.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001283/0.1281, allocations: 0.5787 MB / 427.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002052/0.1302, allocations: 1.067 MB / 428.7 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009139/0.1311, allocations: 0.7394 MB / 429.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008299/0.1319, allocations: 0.5129 MB / 430 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004547/0.1324, allocations: 342.8 kB / 430.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004747/0.1328, allocations: 426.3 kB / 430.7 MB, free: 280 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.708e-05/0.1329, allocations: 68 kB / 430.8 MB, free: 212 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008399/0.1338, allocations: 383.8 kB / 431.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.1339, allocations: 167.4 kB / 431.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003468/0.1342, allocations: 378.1 kB / 431.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001462/0.1357, allocations: 1.195 MB / 432.9 MB, free: 14.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/0.1357, allocations: 4 kB / 432.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1357, allocations: 0 / 432.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.1357, allocations: 4 kB / 432.9 MB, free: 14.09 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.004352/0.1401, allocations: 1.462 MB / 434.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.1401, allocations: 12.03 kB / 434.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.211e-05/0.1402, allocations: 22.19 kB / 434.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001516/0.1403, allocations: 135.3 kB / 434.6 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002548/0.1429, allocations: 388.1 kB / 434.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.1432, allocations: 256.8 kB / 435.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.734e-05/0.1432, allocations: 62.38 kB / 435.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.1433, allocations: 84.38 kB / 435.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.145, allocations: 0.8796 MB / 436.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.622e-05/0.1451, allocations: 0 / 436.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.618e-05/0.1451, allocations: 32 kB / 436.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/0.1452, allocations: 20 kB / 436.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001823/0.147, allocations: 0.8042 MB / 437.1 MB, free: 9.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004441/0.1514, allocations: 2.943 MB / 440 MB, free: 6.707 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.1527, allocations: 0.9715 MB / 441 MB, free: 5.621 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005581/0.1533, allocations: 230.4 kB / 441.2 MB, free: 5.395 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001076/0.1534, allocations: 89.66 kB / 441.3 MB, free: 5.289 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/0.1535, allocations: 39.12 kB / 441.3 MB, free: 5.238 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 1.984e-06/0.1535, allocations: 0 / 441.3 MB, free: 5.238 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.008313/0.1618, allocations: 2.424 MB / 443.7 MB, free: 2.723 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.1618, allocations: 85.67 kB / 443.8 MB, free: 2.621 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003397/0.1622, allocations: 307.2 kB / 444.1 MB, free: 2.309 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.663e-05/0.1622, allocations: 33.7 kB / 444.2 MB, free: 2.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002629/0.1625, allocations: 367.9 kB / 444.5 MB, free: 1.902 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/0.1627, allocations: 226.1 kB / 444.7 MB, free: 1.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/0.1629, allocations: 146.5 kB / 444.9 MB, free: 1.531 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.1631, allocations: 358.7 kB / 445.2 MB, free: 1.172 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008112/0.1639, allocations: 273.8 kB / 445.5 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.1649, allocations: 0.5042 MB / 446 MB, free: 300 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2249/0.3898, allocations: 0.8156 MB / 446.8 MB, free: 29.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.3898, allocations: 2.281 kB / 446.8 MB, free: 29.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002074/0.3919, allocations: 0.8959 MB / 447.7 MB, free: 29.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.3919, allocations: 13.98 kB / 447.7 MB, free: 29.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.3919, allocations: 10.03 kB / 447.7 MB, free: 29.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002577/0.3922, allocations: 63.3 kB / 447.8 MB, free: 29.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008287/0.393, allocations: 207.2 kB / 448 MB, free: 29.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001452/0.3945, allocations: 2.866 MB / 450.9 MB, free: 26.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006379/0.3951, allocations: 66.81 kB / 450.9 MB, free: 26.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.062e-05/0.3952, allocations: 37.97 kB / 451 MB, free: 26.59 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.0002652/0.3954, allocations: 212.1 kB / 451.2 MB, free: 26.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.834e-05/0.3955, allocations: 46.55 kB / 451.2 MB, free: 26.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001899/0.3974, allocations: 0.744 MB / 452 MB, free: 26.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.3974, allocations: 5.25 kB / 452 MB, free: 26.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3974, allocations: 4.781 kB / 452 MB, free: 26.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.3974, allocations: 4.078 kB / 452 MB, free: 26.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00266/0.4001, allocations: 1.42 MB / 453.4 MB, free: 26.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.4001, allocations: 1.125 kB / 453.4 MB, free: 26.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000695/0.4008, allocations: 135.3 kB / 453.5 MB, free: 26.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001925/0.401, allocations: 60.31 kB / 453.6 MB, free: 26.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.256e-05/0.401, allocations: 16.45 kB / 453.6 MB, free: 26.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001506/0.4025, allocations: 2.854 MB / 456.5 MB, free: 23.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.4025, allocations: 1.094 kB / 456.5 MB, free: 23.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002662/0.4052, allocations: 1.088 MB / 457.6 MB, free: 23.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000207/0.4054, allocations: 170.3 kB / 457.7 MB, free: 22.9 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.086e-05/0.4055, allocations: 11.31 kB / 457.7 MB, free: 22.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005173/0.406, allocations: 47.75 kB / 457.8 MB, free: 22.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.4061, allocations: 45.97 kB / 457.8 MB, free: 22.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.357e-05/0.4062, allocations: 20.64 kB / 457.9 MB, free: 22.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002795/0.4064, allocations: 205.7 kB / 458.1 MB, free: 22.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4064, allocations: 4.531 kB / 458.1 MB, free: 22.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009688/0.4074, allocations: 177.6 kB / 458.2 MB, free: 22.73 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.003092/0.4105, allocations: 1.692 MB / 459.9 MB, free: 21.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002188/0.4127, allocations: 0.8822 MB / 460.8 MB, free: 21.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4127, allocations: 0 / 460.8 MB, free: 21.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.4137, allocations: 0.5314 MB / 461.3 MB, free: 20.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004919/0.4142, allocations: 42.3 kB / 461.4 MB, free: 20.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009195/0.4234, allocations: 5.157 MB / 466.5 MB, free: 17.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004562/0.4239, allocations: 0.8811 MB / 467.4 MB, free: 17.08 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004351/0.4243, allocations: 92.69 kB / 467.5 MB, free: 17.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003367/0.4246, allocations: 228 kB / 467.7 MB, free: 16.89 MB / 366.1 MB Notification: Performance of SimCode: time 1.283e-06/0.4246, allocations: 4 kB / 467.7 MB, free: 16.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04067/0.4653, allocations: 11.33 MB / 479.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.27, allocations: 12.86 kB / 479.1 MB, free: 13.26 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 15.740627043007407]