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.001259/0.001259, allocations: 123.2 kB / 17.79 MB, free: 5.246 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.001198/0.001198, allocations: 186.9 kB / 20.73 MB, free: 2.316 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.365/1.365, allocations: 225.6 MB / 249.1 MB, free: 3.609 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 47.92 kB / 365.7 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08873/0.09018, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006958/0.09713, allocations: 5.074 MB / 422.9 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003608/0.1007, allocations: 2.098 MB / 425 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004368/0.1012, allocations: 16 kB / 425 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00319/0.1044, allocations: 1.414 MB / 426.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00141/0.1058, allocations: 0.5775 MB / 427 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002008/0.1078, allocations: 1.069 MB / 428 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009476/0.1087, allocations: 0.7394 MB / 428.8 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008394/0.1096, allocations: 0.509 MB / 429.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004516/0.11, allocations: 326.8 kB / 429.6 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005215/0.1105, allocations: 430.3 kB / 430 MB, free: 304 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.1107, allocations: 68 kB / 430.1 MB, free: 236 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007325/0.1114, allocations: 391.6 kB / 430.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.1115, allocations: 167.4 kB / 430.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000368/0.1119, allocations: 374.1 kB / 431 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001399/0.1133, allocations: 1.203 MB / 432.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1133, allocations: 0 / 432.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1133, allocations: 0 / 432.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.668e-05/0.1133, allocations: 0 / 432.2 MB, free: 14.11 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.004164/0.1175, allocations: 1.465 MB / 433.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.1175, allocations: 12.03 kB / 433.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001494/0.1177, allocations: 131.4 kB / 433.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002539/0.1202, allocations: 384.1 kB / 434.2 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/0.1205, allocations: 256.8 kB / 434.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.18e-05/0.1205, allocations: 58.38 kB / 434.5 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.1207, allocations: 88.36 kB / 434.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.1223, allocations: 0.8798 MB / 435.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.732e-05/0.1223, allocations: 0 / 435.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.299e-05/0.1224, allocations: 36 kB / 435.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.1224, allocations: 20 kB / 435.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001821/0.1242, allocations: 0.8042 MB / 436.3 MB, free: 9.883 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004272/0.1285, allocations: 2.931 MB / 439.3 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.1297, allocations: 0.9793 MB / 440.2 MB, free: 5.664 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005196/0.1303, allocations: 226.4 kB / 440.5 MB, free: 5.441 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.364e-05/0.1304, allocations: 85.67 kB / 440.5 MB, free: 5.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.1304, allocations: 47.12 kB / 440.6 MB, free: 5.281 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 1.603e-06/0.1304, allocations: 0 / 440.6 MB, free: 5.281 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.007715/0.1381, allocations: 2.428 MB / 443 MB, free: 2.762 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.1382, allocations: 89.67 kB / 443.1 MB, free: 2.656 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003124/0.1385, allocations: 299.2 kB / 443.4 MB, free: 2.352 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.227e-05/0.1385, allocations: 33.7 kB / 443.4 MB, free: 2.312 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002312/0.1387, allocations: 371.9 kB / 443.8 MB, free: 1.941 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001684/0.1389, allocations: 222.1 kB / 444 MB, free: 1.723 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002198/0.1391, allocations: 154.5 kB / 444.2 MB, free: 1.566 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1393, allocations: 350.7 kB / 444.5 MB, free: 1.215 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007842/0.1401, allocations: 273.8 kB / 444.8 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009493/0.141, allocations: 0.5081 MB / 445.3 MB, free: 340 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1862/0.3272, allocations: 0.8054 MB / 446.1 MB, free: 29.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.836e-06/0.3272, allocations: 3.312 kB / 446.1 MB, free: 29.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001989/0.3292, allocations: 0.8993 MB / 447 MB, free: 29.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.3292, allocations: 9 kB / 447 MB, free: 29.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.3292, allocations: 15.41 kB / 447 MB, free: 29.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00023/0.3294, allocations: 68.2 kB / 447.1 MB, free: 29.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008238/0.3303, allocations: 205.4 kB / 447.3 MB, free: 29.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.3316, allocations: 2.866 MB / 450.1 MB, free: 26.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006167/0.3322, allocations: 64.23 kB / 450.2 MB, free: 26.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.212e-05/0.3322, allocations: 37.7 kB / 450.2 MB, free: 26.46 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.0002225/0.3325, allocations: 213.9 kB / 450.4 MB, free: 26.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.613e-05/0.3325, allocations: 46.95 kB / 450.5 MB, free: 26.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00176/0.3343, allocations: 0.7461 MB / 451.2 MB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3343, allocations: 8.156 kB / 451.2 MB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.3343, allocations: 3.938 kB / 451.3 MB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.3343, allocations: 3.703 kB / 451.3 MB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002414/0.3367, allocations: 1.411 MB / 452.7 MB, free: 25.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3367, allocations: 0.8125 kB / 452.7 MB, free: 25.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006694/0.3374, allocations: 138.1 kB / 452.8 MB, free: 25.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001554/0.3376, allocations: 58.05 kB / 452.9 MB, free: 25.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.693e-05/0.3376, allocations: 18.84 kB / 452.9 MB, free: 25.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00131/0.3389, allocations: 2.849 MB / 455.7 MB, free: 23.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.3389, allocations: 7 kB / 455.7 MB, free: 23.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002551/0.3415, allocations: 1.092 MB / 456.8 MB, free: 22.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.3417, allocations: 166 kB / 457 MB, free: 22.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.312e-05/0.3417, allocations: 10.94 kB / 457 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004979/0.3422, allocations: 48.17 kB / 457 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.3423, allocations: 51.11 kB / 457.1 MB, free: 22.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.921e-05/0.3424, allocations: 19.53 kB / 457.1 MB, free: 22.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002619/0.3427, allocations: 209.8 kB / 457.3 MB, free: 22.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3427, allocations: 0 / 457.3 MB, free: 22.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007745/0.3434, allocations: 174 kB / 457.5 MB, free: 22.59 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.002803/0.3462, allocations: 1.693 MB / 459.2 MB, free: 21.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001934/0.3482, allocations: 0.8816 MB / 460.1 MB, free: 21.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3482, allocations: 4.125 kB / 460.1 MB, free: 21.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009413/0.3491, allocations: 0.5281 MB / 460.6 MB, free: 20.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004353/0.3495, allocations: 51.09 kB / 460.6 MB, free: 20.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007891/0.3574, allocations: 5.149 MB / 465.8 MB, free: 17.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.3577, allocations: 0.8785 MB / 466.7 MB, free: 16.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003712/0.3581, allocations: 97.02 kB / 466.8 MB, free: 16.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002645/0.3584, allocations: 234.2 kB / 467 MB, free: 16.74 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3584, allocations: 0 / 467 MB, free: 16.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4198/0.7781, allocations: 11.29 MB / 478.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.86/15.63, allocations: 11.34 kB / 478.3 MB, free: 13.16 MB / 366.1 MB " [Timeout remaining time 644] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 18.110770429950207]