Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.001413/0.001413, allocations: 114 kB / 20.43 MB, free: 1.457 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.001431/0.001431, allocations: 214 kB / 23.74 MB, free: 4.672 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.424/1.424, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002427/0.002427, allocations: 67.89 kB / 377.8 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3028, allocations: 53.4 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004788/0.3076, allocations: 2.885 MB / 434.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001639/0.3092, allocations: 0.8021 MB / 434.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002582/0.3095, allocations: 4 kB / 434.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003108/0.3098, allocations: 75.3 kB / 435 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004156/0.3102, allocations: 103.2 kB / 435.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003815/0.3106, allocations: 115.7 kB / 435.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005042/0.3111, allocations: 394.5 kB / 435.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.3113, allocations: 95.33 kB / 435.6 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003681/0.3117, allocations: 167.4 kB / 435.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002669/0.312, allocations: 171.2 kB / 436 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.815e-05/0.312, allocations: 39.94 kB / 436 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.885e-05/0.3121, allocations: 32 kB / 436 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.809e-05/0.3121, allocations: 79.73 kB / 436.1 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001855/0.3123, allocations: 183.1 kB / 436.3 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004965/0.3128, allocations: 410.6 kB / 436.7 MB, free: 1.148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3128, allocations: 0 / 436.7 MB, free: 1.148 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3128, allocations: 0 / 436.7 MB, free: 1.148 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.3128, allocations: 0 / 436.7 MB, free: 1.148 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.00121/0.3141, allocations: 0.5896 MB / 437.3 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.3141, allocations: 12.03 kB / 437.3 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.114e-05/0.3142, allocations: 66.72 kB / 437.4 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.622e-05/0.3143, allocations: 40.7 kB / 437.4 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003993/0.3147, allocations: 221.7 kB / 437.6 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.442e-05/0.3147, allocations: 25.03 kB / 437.6 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.114e-05/0.3147, allocations: 28.38 kB / 437.7 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005933/0.3153, allocations: 298.2 kB / 438 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.3153, allocations: 0 / 438 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.414e-05/0.3154, allocations: 16 kB / 438 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.3154, allocations: 15.94 kB / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005914/0.316, allocations: 250.5 kB / 438.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.3177, allocations: 1.037 MB / 439.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003822/0.3181, allocations: 166 kB / 439.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.3183, allocations: 60.83 kB / 439.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.3183, allocations: 0 / 439.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.3183, allocations: 38.5 kB / 439.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 9.72e-07/0.3183, allocations: 0 / 439.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001989/0.3203, allocations: 0.59 MB / 440.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.3204, allocations: 63.33 kB / 440.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003198/0.3207, allocations: 288.1 kB / 440.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.3207, allocations: 29.7 kB / 440.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.3209, allocations: 244 kB / 440.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.479e-05/0.3209, allocations: 71.39 kB / 440.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.84e-05/0.321, allocations: 69.64 kB / 440.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3212, allocations: 334.8 kB / 441.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/0.3215, allocations: 95.94 kB / 441.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003535/0.3218, allocations: 199.9 kB / 441.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005986/0.3224, allocations: 297.1 kB / 441.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3224, allocations: 4 kB / 441.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008346/0.3233, allocations: 405.4 kB / 442.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.3233, allocations: 10.5 kB / 442.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.3233, allocations: 4 kB / 442.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002457/0.3235, allocations: 57.67 kB / 442.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003255/0.3239, allocations: 75.89 kB / 442.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002194/0.3261, allocations: 2.626 MB / 445 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002718/0.3263, allocations: 23.98 kB / 445 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.3264, allocations: 12 kB / 445 MB, free: 8.297 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.0001885/0.3265, allocations: 161.7 kB / 445.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.433e-05/0.3266, allocations: 31.81 kB / 445.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.578e-05/0.3267, allocations: 34.3 kB / 445.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3267, allocations: 4.062 kB / 445.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3267, allocations: 0 / 445.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.3267, allocations: 7.984 kB / 445.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003825/0.3271, allocations: 300.5 kB / 445.5 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3271, allocations: 3.938 kB / 445.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/0.3273, allocations: 39.95 kB / 445.6 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001606/0.3274, allocations: 57.67 kB / 445.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.3275, allocations: 8 kB / 445.6 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002052/0.3295, allocations: 2.63 MB / 448.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3295, allocations: 0 / 448.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007116/0.3302, allocations: 376.8 kB / 448.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.732e-05/0.3303, allocations: 27.8 kB / 448.7 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.45e-05/0.3303, allocations: 8 kB / 448.7 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.3305, allocations: 15.98 kB / 448.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.731e-05/0.3306, allocations: 19.95 kB / 448.7 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.3306, allocations: 8 kB / 448.7 MB, free: 4.273 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002093/0.3308, allocations: 211 kB / 448.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3308, allocations: 0 / 448.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003738/0.3312, allocations: 72 kB / 449 MB, free: 4 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.001041/0.3322, allocations: 0.9146 MB / 449.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008965/0.3331, allocations: 469 kB / 450.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3331, allocations: 4 kB / 450.4 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000494/0.3336, allocations: 346 kB / 450.7 MB, free: 2.203 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.3339, allocations: 35.95 kB / 450.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004397/0.3383, allocations: 3.018 MB / 453.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003852/0.3387, allocations: 0.783 MB / 454.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000117/0.3388, allocations: 30.27 kB / 454.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.339, allocations: 99.41 kB / 454.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.339, allocations: 0 / 454.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03788/0.3769, allocations: 6.035 MB / 460.7 MB, free: 8.152 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.15, allocations: 8.047 kB / 460.7 MB, free: 8.145 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.559552574064583]