Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007987/0.0007987, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8924/0.8924, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.28e-05/1.421e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.002598/0.002612, allocations: 2.654 MB / 327.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009751/0.003588, allocations: 0.7515 MB / 328 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.003717, allocations: 15.94 kB / 328 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.003898, allocations: 59.38 kB / 328 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002158/0.004114, allocations: 99.19 kB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002121/0.004326, allocations: 119.7 kB / 328.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002816/0.004608, allocations: 407 kB / 328.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.00478, allocations: 91.06 kB / 328.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003261/0.005106, allocations: 235.4 kB / 329 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.005234, allocations: 127.6 kB / 329.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.524e-05/0.005269, allocations: 32 kB / 329.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.171e-05/0.005301, allocations: 32 kB / 329.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.203e-05/0.005343, allocations: 79.67 kB / 329.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.819e-05/0.005421, allocations: 115.7 kB / 329.4 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000293/0.005714, allocations: 406.6 kB / 329.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.005716, allocations: 0 / 329.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.005718, allocations: 8 kB / 329.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.005724, allocations: 0 / 329.8 MB, free: 10.73 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.0007024/0.006426, allocations: 0.5675 MB / 330.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.006462, allocations: 12.03 kB / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.214e-05/0.006514, allocations: 66.72 kB / 330.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.547e-05/0.00656, allocations: 40.7 kB / 330.4 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.006813, allocations: 214.1 kB / 330.7 MB, free: 9.766 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/0.006836, allocations: 29.03 kB / 330.7 MB, free: 9.734 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.00687, allocations: 28.38 kB / 330.7 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003693/0.00724, allocations: 286.6 kB / 331 MB, free: 9.422 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.007249, allocations: 192 / 331 MB, free: 9.422 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.007271, allocations: 20.12 kB / 331 MB, free: 9.402 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.007278, allocations: 8 kB / 331 MB, free: 9.395 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003509/0.007629, allocations: 254.4 kB / 331.3 MB, free: 9.148 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.008674, allocations: 0.9254 MB / 332.2 MB, free: 8.145 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002401/0.008914, allocations: 138.6 kB / 332.3 MB, free: 8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.009018, allocations: 60.83 kB / 332.4 MB, free: 7.938 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.009039, allocations: 0 / 332.4 MB, free: 7.938 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.009063, allocations: 46.42 kB / 332.4 MB, free: 7.883 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 9.72e-07/0.009064, allocations: 0 / 332.4 MB, free: 7.883 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001157/0.01022, allocations: 0.5941 MB / 333 MB, free: 7.277 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.01025, allocations: 55.41 kB / 333.1 MB, free: 7.211 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.01044, allocations: 277.7 kB / 333.3 MB, free: 6.934 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.01046, allocations: 29.7 kB / 333.4 MB, free: 6.898 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.01057, allocations: 228 kB / 333.6 MB, free: 6.668 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.411e-05/0.01061, allocations: 95.25 kB / 333.7 MB, free: 6.574 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.466e-05/0.01068, allocations: 61.66 kB / 333.8 MB, free: 6.508 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.729e-05/0.01076, allocations: 338.8 kB / 334.1 MB, free: 6.168 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.01092, allocations: 95.94 kB / 334.2 MB, free: 6.074 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.01112, allocations: 188.2 kB / 334.4 MB, free: 5.844 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003525/0.01147, allocations: 302.1 kB / 334.7 MB, free: 5.508 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.01147, allocations: 4 kB / 334.7 MB, free: 5.504 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004875/0.01196, allocations: 397.2 kB / 335 MB, free: 5.105 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.01198, allocations: 11.94 kB / 335.1 MB, free: 5.094 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.01198, allocations: 0 / 335.1 MB, free: 5.094 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001718/0.01215, allocations: 61.92 kB / 335.1 MB, free: 5.027 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.01232, allocations: 71.89 kB / 335.2 MB, free: 4.957 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00123/0.01355, allocations: 2.622 MB / 337.8 MB, free: 2.105 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001366/0.01369, allocations: 28.09 kB / 337.8 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.0137, allocations: 16 kB / 337.9 MB, free: 2.062 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.0001063/0.01381, allocations: 149.7 kB / 338 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.902e-05/0.01384, allocations: 27.81 kB / 338 MB, free: 1.879 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.983e-05/0.01388, allocations: 30.27 kB / 338.1 MB, free: 1.852 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.01388, allocations: 4 kB / 338.1 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.01389, allocations: 0 / 338.1 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.01389, allocations: 0 / 338.1 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.0141, allocations: 276.6 kB / 338.3 MB, free: 1.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.01411, allocations: 4 kB / 338.3 MB, free: 1.531 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.476e-05/0.0142, allocations: 43.89 kB / 338.4 MB, free: 1.488 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.031e-05/0.01429, allocations: 45.69 kB / 338.4 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.0143, allocations: 8 kB / 338.4 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.01544, allocations: 2.618 MB / 341.1 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.01545, allocations: 4.031 kB / 341.1 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00039/0.01584, allocations: 375.9 kB / 341.4 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.361e-05/0.01586, allocations: 23.81 kB / 341.4 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/0.01588, allocations: 7.938 kB / 341.5 MB, free: 14.15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.492e-05/0.01597, allocations: 19.97 kB / 341.5 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.01608, allocations: 19.97 kB / 341.5 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.01609, allocations: 4.141 kB / 341.5 MB, free: 14.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001159/0.0162, allocations: 193.1 kB / 341.7 MB, free: 13.92 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0162, allocations: 0 / 341.7 MB, free: 13.92 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002499/0.01645, allocations: 72 kB / 341.8 MB, free: 13.85 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.0005458/0.017, allocations: 0.9192 MB / 342.7 MB, free: 12.9 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005288/0.01753, allocations: 472.2 kB / 343.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.01753, allocations: 0 / 343.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003601/0.01789, allocations: 342 kB / 343.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002242/0.01811, allocations: 24.48 kB / 343.5 MB, free: 12.03 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.02062, allocations: 2.956 MB / 346.4 MB, free: 8.906 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000103/0.02073, allocations: 164.8 kB / 346.6 MB, free: 8.723 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.001e-05/0.02081, allocations: 30.27 kB / 346.6 MB, free: 8.695 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.02091, allocations: 100.5 kB / 346.7 MB, free: 8.598 MB / 314.7 MB Notification: Performance of SimCode: time 4.11e-07/0.02091, allocations: 0 / 346.7 MB, free: 8.598 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01934/0.04025, allocations: 6.409 MB / 353.1 MB, free: 2.336 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.998/7.038, allocations: 1.688 kB / 353.1 MB, free: 2.336 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.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: 8.645464318804443]