Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001655/0.001655, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002052/0.002052, allocations: 211 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 230.5 MB / 258.2 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 67.88 kB / 378.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2896, allocations: 53.42 MB / 432 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.007386/0.2969, allocations: 5.093 MB / 437.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004706/0.3016, allocations: 2.187 MB / 439.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005997/0.3022, allocations: 16 kB / 439.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003425/0.3057, allocations: 1.408 MB / 440.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001375/0.307, allocations: 433.3 kB / 441.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002341/0.3094, allocations: 1.221 MB / 442.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009838/0.3104, allocations: 0.7317 MB / 443.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009627/0.3113, allocations: 0.5789 MB / 443.7 MB, free: 11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004765/0.3118, allocations: 342.8 kB / 444 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005513/0.3124, allocations: 426.3 kB / 444.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.449e-05/0.3125, allocations: 68 kB / 444.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008975/0.3134, allocations: 415.6 kB / 444.9 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.3135, allocations: 163.4 kB / 445 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003429/0.3138, allocations: 382.1 kB / 445.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001541/0.3154, allocations: 1.208 MB / 446.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3154, allocations: 0 / 446.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.99e-06/0.3154, allocations: 3.984 kB / 446.6 MB, free: 8.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.694e-05/0.3154, allocations: 0 / 446.6 MB, free: 8.027 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004369/0.3198, allocations: 1.404 MB / 448 MB, free: 6.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.3198, allocations: 12.03 kB / 448 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.287e-05/0.3199, allocations: 22.19 kB / 448.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001472/0.32, allocations: 131.4 kB / 448.2 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002562/0.3226, allocations: 368.1 kB / 448.5 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.3228, allocations: 198.3 kB / 448.7 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.207e-05/0.3229, allocations: 62.38 kB / 448.8 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.323, allocations: 88.38 kB / 448.9 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001723/0.3248, allocations: 0.8717 MB / 449.8 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.96e-05/0.3248, allocations: 7.891 kB / 449.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-05/0.3249, allocations: 36 kB / 449.8 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.242e-05/0.3249, allocations: 20 kB / 449.8 MB, free: 4.746 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001808/0.3267, allocations: 0.7886 MB / 450.6 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00464/0.3314, allocations: 2.783 MB / 453.4 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.3325, allocations: 0.5123 MB / 453.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005267/0.333, allocations: 218.2 kB / 454.1 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.809e-05/0.3331, allocations: 24.45 kB / 454.1 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/0.3331, allocations: 47.06 kB / 454.2 MB, free: 204 kB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.564e-06/0.3331, allocations: 0 / 454.2 MB, free: 204 kB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.00749/0.3406, allocations: 2.159 MB / 456.3 MB, free: 14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.118e-05/0.3407, allocations: 85.61 kB / 456.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003532/0.3411, allocations: 308.4 kB / 456.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.043e-05/0.3411, allocations: 33.7 kB / 456.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002447/0.3414, allocations: 375.8 kB / 457.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.3415, allocations: 218.1 kB / 457.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002369/0.3418, allocations: 146.5 kB / 457.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.3419, allocations: 354.7 kB / 457.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007603/0.3427, allocations: 269.8 kB / 458.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009577/0.3437, allocations: 0.501 MB / 458.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001719/0.3454, allocations: 0.8088 MB / 459.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3454, allocations: 4 kB / 459.4 MB, free: 10.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002128/0.3475, allocations: 0.8968 MB / 460.3 MB, free: 9.762 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.3475, allocations: 14.44 kB / 460.3 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.3476, allocations: 8 kB / 460.3 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002695/0.3478, allocations: 70.02 kB / 460.4 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008368/0.3487, allocations: 199.7 kB / 460.6 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002199/0.3509, allocations: 2.657 MB / 463.3 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006396/0.3515, allocations: 64.02 kB / 463.3 MB, free: 6.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.459e-05/0.3516, allocations: 43.92 kB / 463.4 MB, free: 6.477 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.0003668/0.3519, allocations: 213.6 kB / 463.6 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.352, allocations: 47.66 kB / 463.6 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/0.354, allocations: 0.7298 MB / 464.3 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.354, allocations: 4 kB / 464.3 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.354, allocations: 0 / 464.3 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.354, allocations: 3.938 kB / 464.4 MB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002761/0.3567, allocations: 1.387 MB / 465.7 MB, free: 4.023 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.3567, allocations: 0 / 465.7 MB, free: 4.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006526/0.3574, allocations: 131.8 kB / 465.9 MB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001861/0.3576, allocations: 53.67 kB / 465.9 MB, free: 3.836 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/0.3576, allocations: 19.98 kB / 465.9 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00222/0.3598, allocations: 2.638 MB / 468.6 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3598, allocations: 0 / 468.6 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0026/0.3624, allocations: 1.085 MB / 469.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/0.3627, allocations: 83.69 kB / 469.7 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.41e-05/0.3627, allocations: 16.17 kB / 469.8 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004813/0.3632, allocations: 47.95 kB / 469.8 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.3634, allocations: 56.33 kB / 469.9 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.347e-05/0.3634, allocations: 19.98 kB / 469.9 MB, free: 15.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002361/0.3636, allocations: 207.1 kB / 470.1 MB, free: 15.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3636, allocations: 0 / 470.1 MB, free: 15.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007805/0.3644, allocations: 172 kB / 470.3 MB, free: 15.25 MB / 382.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.003236/0.3677, allocations: 1.68 MB / 471.9 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002124/0.3698, allocations: 0.8691 MB / 472.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3698, allocations: 4.062 kB / 472.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/0.3708, allocations: 0.5234 MB / 473.3 MB, free: 12.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005864/0.3714, allocations: 44.59 kB / 473.4 MB, free: 12.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01038/0.3818, allocations: 5.091 MB / 478.5 MB, free: 6.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006128/0.3824, allocations: 0.8849 MB / 479.3 MB, free: 5.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000377/0.3828, allocations: 80.53 kB / 479.4 MB, free: 5.672 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003954/0.3832, allocations: 235.3 kB / 479.7 MB, free: 5.441 MB / 382.1 MB Notification: Performance of SimCode: time 1.353e-06/0.3832, allocations: 3.938 kB / 479.7 MB, free: 5.438 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0541/0.4373, allocations: 11.9 MB / 491.6 MB, free: 9.699 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.42/14.86, allocations: 11.98 kB / 491.6 MB, free: 9.688 MB / 398.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 17.457028704986442]