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.001718/0.001718, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002073/0.002073, allocations: 211.6 kB / 23.73 MB, free: 4.523 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.392/1.392, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001474/0.001474, allocations: 47.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2371, allocations: 53.37 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004009/0.2411, allocations: 2.655 MB / 433.7 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.2424, allocations: 0.7516 MB / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.2425, allocations: 4 kB / 434.5 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002091/0.2427, allocations: 63.44 kB / 434.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002558/0.243, allocations: 91.19 kB / 434.6 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002622/0.2433, allocations: 119.7 kB / 434.8 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003932/0.2436, allocations: 390.6 kB / 435.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.2438, allocations: 97.02 kB / 435.2 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002813/0.2441, allocations: 163.4 kB / 435.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.2443, allocations: 171.2 kB / 435.6 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.839e-05/0.2444, allocations: 36 kB / 435.6 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.914e-05/0.2444, allocations: 36 kB / 435.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.907e-05/0.2445, allocations: 75.64 kB / 435.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.2446, allocations: 143.3 kB / 435.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004081/0.2451, allocations: 398.3 kB / 436.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.2451, allocations: 0 / 436.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2451, allocations: 3.938 kB / 436.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.2451, allocations: 0 / 436.2 MB, free: 1.449 MB / 334.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.001138/0.2462, allocations: 0.5831 MB / 436.8 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.2462, allocations: 8.031 kB / 436.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.752e-05/0.2463, allocations: 70.72 kB / 436.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.354e-05/0.2464, allocations: 40.64 kB / 436.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.2467, allocations: 218.8 kB / 437.2 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/0.2468, allocations: 21.03 kB / 437.2 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.245e-05/0.2468, allocations: 32.38 kB / 437.2 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005811/0.2474, allocations: 294.1 kB / 437.5 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.2474, allocations: 0 / 437.5 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/0.2474, allocations: 16 kB / 437.5 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.2474, allocations: 8 kB / 437.5 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006039/0.248, allocations: 246.5 kB / 437.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.2496, allocations: 0.9283 MB / 438.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003726/0.25, allocations: 150.4 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000194/0.2502, allocations: 64.83 kB / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.2502, allocations: 3.984 kB / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.2503, allocations: 38.56 kB / 438.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.342e-06/0.2503, allocations: 0 / 438.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002002/0.2523, allocations: 0.5864 MB / 439.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.2523, allocations: 55.41 kB / 439.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002853/0.2526, allocations: 281.6 kB / 439.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.2526, allocations: 29.7 kB / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.2528, allocations: 232.1 kB / 440.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.658e-05/0.2528, allocations: 79.33 kB / 440.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.976e-05/0.2529, allocations: 69.44 kB / 440.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.2531, allocations: 334.8 kB / 440.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.2534, allocations: 95.92 kB / 440.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003552/0.2537, allocations: 204 kB / 440.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006276/0.2543, allocations: 297.1 kB / 441.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2543, allocations: 0 / 441.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008339/0.2552, allocations: 389.1 kB / 441.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.2552, allocations: 8.406 kB / 441.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.2552, allocations: 8 kB / 441.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002401/0.2554, allocations: 57.67 kB / 441.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003308/0.2558, allocations: 75.89 kB / 441.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/0.2578, allocations: 2.622 MB / 444.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002652/0.2581, allocations: 19.98 kB / 444.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.737e-05/0.2581, allocations: 16 kB / 444.4 MB, free: 8.777 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.0001583/0.2583, allocations: 161.7 kB / 444.5 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.45e-05/0.2583, allocations: 27.81 kB / 444.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.6e-05/0.2584, allocations: 30.27 kB / 444.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.2584, allocations: 4 kB / 444.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2584, allocations: 0 / 444.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.2584, allocations: 7.984 kB / 444.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003422/0.2588, allocations: 280.5 kB / 444.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2588, allocations: 3.938 kB / 444.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002117/0.259, allocations: 39.97 kB / 444.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001495/0.2591, allocations: 57.67 kB / 445 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.2591, allocations: 0 / 445 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001976/0.2611, allocations: 2.63 MB / 447.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2611, allocations: 0 / 447.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007148/0.2618, allocations: 368.8 kB / 447.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.651e-05/0.2619, allocations: 31.8 kB / 448 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.2619, allocations: 4 kB / 448 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.2621, allocations: 20.05 kB / 448 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.679e-05/0.2622, allocations: 19.95 kB / 448 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.2622, allocations: 4 kB / 448 MB, free: 4.797 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001842/0.2624, allocations: 189.2 kB / 448.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2624, allocations: 0 / 448.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003735/0.2627, allocations: 76 kB / 448.3 MB, free: 4.535 MB / 350.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.000983/0.2637, allocations: 0.9068 MB / 449.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008775/0.2646, allocations: 475.1 kB / 449.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2646, allocations: 3.938 kB / 449.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004925/0.2651, allocations: 341.2 kB / 450 MB, free: 2.746 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.2654, allocations: 25.25 kB / 450 MB, free: 2.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0043/0.2697, allocations: 2.949 MB / 453 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001712/0.2699, allocations: 164.8 kB / 453.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001241/0.27, allocations: 30.27 kB / 453.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.2702, allocations: 99.41 kB / 453.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2702, allocations: 0 / 453.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03794/0.3081, allocations: 6.364 MB / 459.6 MB, free: 9.094 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.78, allocations: 4 kB / 459.6 MB, free: 9.09 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.691342847014312]