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.001338/0.001338, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001392/0.001392, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.527/1.527, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001488/0.001488, allocations: 59.91 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1149, allocations: 53.33 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004883/0.1198, allocations: 2.832 MB / 429.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.1214, allocations: 0.7865 MB / 429.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.1215, allocations: 4 kB / 429.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002479/0.1217, allocations: 67.42 kB / 430 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002928/0.122, allocations: 103.2 kB / 430.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003065/0.1223, allocations: 107.8 kB / 430.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004483/0.1228, allocations: 386.6 kB / 430.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.123, allocations: 94.94 kB / 430.7 MB, free: 408 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003074/0.1233, allocations: 175.3 kB / 430.9 MB, free: 232 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000218/0.1235, allocations: 159.3 kB / 431 MB, free: 72 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.205e-05/0.1236, allocations: 32 kB / 431 MB, free: 40 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.224e-05/0.1236, allocations: 32 kB / 431.1 MB, free: 8 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2785/0.4021, allocations: 74.98 kB / 431.1 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000286/0.4024, allocations: 178.6 kB / 431.3 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006188/0.403, allocations: 398 kB / 431.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.403, allocations: 0.9062 kB / 431.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.403, allocations: 3.062 kB / 431.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.953e-05/0.403, allocations: 2.75 kB / 431.7 MB, free: 7.965 MB / 350.1 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.001205/0.4042, allocations: 0.6475 MB / 432.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.4043, allocations: 10.28 kB / 432.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.451e-05/0.4044, allocations: 66.91 kB / 432.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.242e-05/0.4044, allocations: 39.23 kB / 432.5 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.4049, allocations: 283 kB / 432.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.263e-05/0.4049, allocations: 25.06 kB / 432.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.093e-05/0.405, allocations: 30.78 kB / 432.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006471/0.4056, allocations: 291.7 kB / 433.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.4056, allocations: 2.109 kB / 433.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.2e-05/0.4057, allocations: 13.72 kB / 433.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.4057, allocations: 7.812 kB / 433.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006416/0.4063, allocations: 250.4 kB / 433.4 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.408, allocations: 1.11 MB / 434.5 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004255/0.4085, allocations: 149.9 kB / 434.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001883/0.4086, allocations: 62.98 kB / 434.7 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.694e-05/0.4087, allocations: 3.859 kB / 434.7 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.4087, allocations: 39 kB / 434.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.994e-06/0.4087, allocations: 0.8438 kB / 434.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002302/0.411, allocations: 0.5897 MB / 435.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.411, allocations: 54.56 kB / 435.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.4114, allocations: 272.9 kB / 435.6 MB, free: 6.203 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.4114, allocations: 33.3 kB / 435.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.4115, allocations: 237.4 kB / 435.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.263e-05/0.4116, allocations: 77.34 kB / 436 MB, free: 5.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.4117, allocations: 67.12 kB / 436 MB, free: 5.938 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.133e-05/0.4117, allocations: 334.3 kB / 436.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003053/0.412, allocations: 100.2 kB / 436.5 MB, free: 5.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003471/0.4124, allocations: 194.5 kB / 436.7 MB, free: 5.504 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006113/0.413, allocations: 300.4 kB / 436.9 MB, free: 5.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.413, allocations: 1.062 kB / 436.9 MB, free: 5.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009405/0.4139, allocations: 394.2 kB / 437.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.414, allocations: 6.594 kB / 437.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.414, allocations: 3.531 kB / 437.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002952/0.4143, allocations: 55.2 kB / 437.4 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003557/0.4146, allocations: 76.75 kB / 437.5 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001711/0.4163, allocations: 2.837 MB / 440.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002904/0.4166, allocations: 23.45 kB / 440.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.747e-05/0.4167, allocations: 15.66 kB / 440.3 MB, free: 2.59 MB / 350.1 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.0001495/0.4168, allocations: 157.3 kB / 440.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.238e-05/0.4169, allocations: 24.36 kB / 440.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.64e-05/0.4169, allocations: 35.86 kB / 440.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.4169, allocations: 4.75 kB / 440.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.4169, allocations: 2.125 kB / 440.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.417, allocations: 2.391 kB / 440.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003934/0.4173, allocations: 333.2 kB / 440.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4173, allocations: 5 kB / 440.9 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002282/0.4176, allocations: 36.66 kB / 440.9 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001664/0.4177, allocations: 59.03 kB / 441 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.4178, allocations: 6.656 kB / 441 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001764/0.4195, allocations: 2.83 MB / 443.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4195, allocations: 0 / 443.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008623/0.4204, allocations: 377.3 kB / 444.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.765e-05/0.4205, allocations: 105.1 kB / 444.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/0.4205, allocations: 2.016 kB / 444.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.4207, allocations: 18.41 kB / 444.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.825e-05/0.4208, allocations: 20.3 kB / 444.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.4208, allocations: 4.266 kB / 444.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000255/0.4211, allocations: 188.1 kB / 444.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4211, allocations: 7.844 kB / 444.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004763/0.4216, allocations: 70.12 kB / 444.6 MB, free: 14.89 MB / 366.1 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.001192/0.4228, allocations: 0.909 MB / 445.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.424, allocations: 475 kB / 446 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.424, allocations: 0.9375 kB / 446 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000586/0.4246, allocations: 343.4 kB / 446.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000382/0.4249, allocations: 32.31 kB / 446.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005362/0.4303, allocations: 2.961 MB / 449.3 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005134/0.4308, allocations: 0.7709 MB / 450.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001495/0.431, allocations: 31.06 kB / 450.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.4311, allocations: 104.1 kB / 450.2 MB, free: 10.78 MB / 366.1 MB Notification: Performance of SimCode: time 1.363e-06/0.4311, allocations: 0 / 450.2 MB, free: 10.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0547/0.4858, allocations: 5.655 MB / 455.9 MB, free: 10.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.54, allocations: 11.39 kB / 455.9 MB, free: 10.07 MB / 366.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/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: 13.046210847096518]