Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.001836/0.001836, allocations: 107.5 kB / 20.43 MB, free: 1.066 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.002146/0.002146, allocations: 187.5 kB / 23.7 MB, free: 4.188 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.431/1.431, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 59.89 kB / 370.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2466, allocations: 52.18 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004075/0.2506, allocations: 2.63 MB / 425.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.2519, allocations: 0.6933 MB / 425.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.252, allocations: 8 kB / 425.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001986/0.2522, allocations: 59.39 kB / 426 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000249/0.2525, allocations: 99.23 kB / 426.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003031/0.2528, allocations: 107.8 kB / 426.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003987/0.2532, allocations: 386.6 kB / 426.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.2533, allocations: 88.98 kB / 426.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002408/0.2536, allocations: 163.4 kB / 426.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002028/0.2538, allocations: 147.2 kB / 426.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.534e-05/0.2538, allocations: 35.98 kB / 427 MB, free: 10 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.824e-05/0.2539, allocations: 32 kB / 427 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.343e-05/0.254, allocations: 75.69 kB / 427.1 MB, free: 9.898 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.2541, allocations: 143.3 kB / 427.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004386/0.2546, allocations: 398.3 kB / 427.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2546, allocations: 0 / 427.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2546, allocations: 4 kB / 427.6 MB, free: 9.363 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.635e-06/0.2546, allocations: 0 / 427.6 MB, free: 9.363 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.001145/0.2557, allocations: 0.5753 MB / 428.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.2558, allocations: 12.03 kB / 428.2 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.172e-05/0.2558, allocations: 70.72 kB / 428.3 MB, free: 8.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.95e-05/0.2559, allocations: 36.7 kB / 428.3 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003951/0.2563, allocations: 213.9 kB / 428.5 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.969e-05/0.2563, allocations: 32.91 kB / 428.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.872e-05/0.2564, allocations: 32.38 kB / 428.6 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006066/0.257, allocations: 286.2 kB / 428.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.257, allocations: 0 / 428.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.029e-05/0.2571, allocations: 12 kB / 428.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-06/0.2571, allocations: 12 kB / 428.9 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006104/0.2577, allocations: 250.5 kB / 429.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.2594, allocations: 0.9244 MB / 430.1 MB, free: 6.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003872/0.2598, allocations: 150.4 kB / 430.2 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001852/0.2599, allocations: 60.73 kB / 430.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.26, allocations: 4 kB / 430.3 MB, free: 6.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.48e-05/0.26, allocations: 38.55 kB / 430.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.372e-06/0.26, allocations: 0 / 430.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002169/0.2622, allocations: 0.5919 MB / 430.9 MB, free: 5.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.2622, allocations: 51.41 kB / 430.9 MB, free: 5.848 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003126/0.2625, allocations: 277.7 kB / 431.2 MB, free: 5.566 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.2626, allocations: 29.7 kB / 431.2 MB, free: 5.531 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.2627, allocations: 224.1 kB / 431.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.18e-05/0.2628, allocations: 87.25 kB / 431.5 MB, free: 5.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.2629, allocations: 65.66 kB / 431.6 MB, free: 5.148 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.2631, allocations: 338.8 kB / 431.9 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002898/0.2634, allocations: 95.92 kB / 432 MB, free: 4.715 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003761/0.2638, allocations: 188.1 kB / 432.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000636/0.2644, allocations: 302.3 kB / 432.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2644, allocations: 4 kB / 432.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008871/0.2653, allocations: 393.2 kB / 432.9 MB, free: 3.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.2653, allocations: 8 kB / 432.9 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.2653, allocations: 0 / 432.9 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002695/0.2656, allocations: 61.95 kB / 433 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003301/0.2659, allocations: 75.89 kB / 433 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002277/0.2682, allocations: 2.623 MB / 435.7 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.2685, allocations: 28.09 kB / 435.7 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.879e-05/0.2685, allocations: 16 kB / 435.7 MB, free: 0.707 MB / 334.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.0001697/0.2687, allocations: 153.7 kB / 435.9 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.112e-05/0.2687, allocations: 23.81 kB / 435.9 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.168e-05/0.2688, allocations: 34.27 kB / 435.9 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.2688, allocations: 4 kB / 435.9 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2688, allocations: 0 / 435.9 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.2688, allocations: 4 kB / 435.9 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003555/0.2692, allocations: 272.6 kB / 436.2 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.2692, allocations: 0 / 436.2 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002024/0.2694, allocations: 43.89 kB / 436.2 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000149/0.2695, allocations: 57.56 kB / 436.3 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.2695, allocations: 8 kB / 436.3 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002186/0.2717, allocations: 2.618 MB / 438.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2717, allocations: 0 / 438.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007645/0.2725, allocations: 386.3 kB / 439.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.333e-05/0.2725, allocations: 19.86 kB / 439.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.009e-05/0.2726, allocations: 4 kB / 439.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.2728, allocations: 19.97 kB / 439.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.968e-05/0.2728, allocations: 20.05 kB / 439.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.2728, allocations: 4 kB / 439.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001972/0.273, allocations: 189.2 kB / 439.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.273, allocations: 0 / 439.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000385/0.2734, allocations: 76 kB / 439.6 MB, free: 12.49 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.00109/0.2745, allocations: 0.9034 MB / 440.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009995/0.2755, allocations: 477 kB / 441 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2755, allocations: 0.8125 kB / 441 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005344/0.276, allocations: 349.3 kB / 441.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003527/0.2764, allocations: 35.05 kB / 441.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004496/0.2809, allocations: 2.928 MB / 444.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001768/0.2811, allocations: 164.8 kB / 444.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001306/0.2812, allocations: 30.28 kB / 444.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.2814, allocations: 95.41 kB / 444.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2814, allocations: 7.938 kB / 444.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04176/0.3231, allocations: 6.201 MB / 450.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.04, allocations: 19.25 kB / 450.8 MB, free: 1.195 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 15.89277208223939]