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.002005/0.002005, allocations: 114 kB / 20.44 MB, free: 1.469 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.00215/0.00215, allocations: 211.4 kB / 23.74 MB, free: 4.695 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.668/1.668, allocations: 230.5 MB / 257.4 MB, free: 8.02 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 63.88 kB / 377.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3293, allocations: 53.41 MB / 431.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.008123/0.3375, allocations: 5.105 MB / 436.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004767/0.3422, allocations: 2.195 MB / 438.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007469/0.343, allocations: 16 kB / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003981/0.347, allocations: 1.415 MB / 439.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001807/0.3488, allocations: 425.3 kB / 440.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00304/0.3518, allocations: 1.225 MB / 441.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001871/0.3537, allocations: 0.7278 MB / 442.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00155/0.3552, allocations: 0.584 MB / 442.9 MB, free: 11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000831/0.3561, allocations: 342.8 kB / 443.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009147/0.357, allocations: 426.3 kB / 443.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002399/0.3572, allocations: 68 kB / 443.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001428/0.3586, allocations: 411.6 kB / 444.1 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002619/0.3589, allocations: 159.5 kB / 444.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000746/0.3597, allocations: 386.1 kB / 444.6 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003045/0.3627, allocations: 1.198 MB / 445.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.3627, allocations: 0 / 445.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3627, allocations: 0 / 445.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.404e-05/0.3628, allocations: 0 / 445.8 MB, free: 8.043 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.006708/0.3695, allocations: 1.412 MB / 447.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.57e-05/0.3696, allocations: 15.97 kB / 447.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003591/0.3699, allocations: 131.4 kB / 447.4 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002732/0.3726, allocations: 372.1 kB / 447.7 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004205/0.3731, allocations: 194.3 kB / 447.9 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.3732, allocations: 62.38 kB / 448 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002775/0.3735, allocations: 84.38 kB / 448.1 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002421/0.3759, allocations: 0.8681 MB / 449 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.094e-05/0.3759, allocations: 11.94 kB / 449 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.433e-05/0.376, allocations: 35.94 kB / 449 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.66e-05/0.3761, allocations: 20 kB / 449 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001983/0.378, allocations: 0.7886 MB / 449.8 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005421/0.3835, allocations: 2.779 MB / 452.6 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.3846, allocations: 0.5084 MB / 453.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005355/0.3852, allocations: 222.2 kB / 453.3 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001291/0.3853, allocations: 28.45 kB / 453.3 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/0.3853, allocations: 43.06 kB / 453.4 MB, free: 236 kB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 3.997e-06/0.3853, allocations: 3.938 kB / 453.4 MB, free: 232 kB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007849/0.3932, allocations: 2.163 MB / 455.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.926e-05/0.3933, allocations: 85.61 kB / 455.6 MB, free: 13.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004855/0.3938, allocations: 308.4 kB / 455.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.246e-05/0.3938, allocations: 37.7 kB / 456 MB, free: 13.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003323/0.3942, allocations: 371.8 kB / 456.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002368/0.3944, allocations: 222 kB / 456.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002644/0.3947, allocations: 146.6 kB / 456.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002085/0.3949, allocations: 354.7 kB / 457 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008231/0.3957, allocations: 269.8 kB / 457.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.3968, allocations: 0.5004 MB / 457.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001916/0.3987, allocations: 0.8049 MB / 458.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.376e-05/0.3987, allocations: 4 kB / 458.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002341/0.401, allocations: 0.9011 MB / 459.5 MB, free: 9.781 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.4011, allocations: 8 kB / 459.5 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.327e-05/0.4011, allocations: 11.94 kB / 459.5 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003019/0.4014, allocations: 65.7 kB / 459.6 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008911/0.4023, allocations: 199.7 kB / 459.8 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002847/0.4051, allocations: 2.657 MB / 462.4 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008053/0.4059, allocations: 59.94 kB / 462.5 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.743e-05/0.406, allocations: 32 kB / 462.5 MB, free: 6.516 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.0004623/0.4065, allocations: 221.6 kB / 462.8 MB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.4066, allocations: 47.66 kB / 462.8 MB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002104/0.4087, allocations: 0.7258 MB / 463.5 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.4088, allocations: 4 kB / 463.5 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.4088, allocations: 4 kB / 463.5 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.4088, allocations: 3.984 kB / 463.5 MB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003265/0.412, allocations: 1.383 MB / 464.9 MB, free: 4.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.412, allocations: 0 / 464.9 MB, free: 4.059 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007108/0.4128, allocations: 135.8 kB / 465.1 MB, free: 3.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002521/0.413, allocations: 57.67 kB / 465.1 MB, free: 3.863 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.077e-05/0.4131, allocations: 15.98 kB / 465.1 MB, free: 3.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002812/0.4159, allocations: 2.645 MB / 467.8 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4159, allocations: 0 / 467.8 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002827/0.4187, allocations: 1.078 MB / 468.8 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002974/0.419, allocations: 87.64 kB / 468.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.141e-05/0.4191, allocations: 12 kB / 468.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005506/0.4197, allocations: 48.02 kB / 469 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.4198, allocations: 52.39 kB / 469 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.105e-05/0.4198, allocations: 19.94 kB / 469.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002886/0.4201, allocations: 207.1 kB / 469.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4201, allocations: 0 / 469.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009532/0.4211, allocations: 179.9 kB / 469.4 MB, free: 15.28 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.003464/0.4245, allocations: 1.676 MB / 471.1 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002142/0.4267, allocations: 0.8765 MB / 472 MB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4267, allocations: 0 / 472 MB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.4278, allocations: 0.5276 MB / 472.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006701/0.4285, allocations: 48.58 kB / 472.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/0.4393, allocations: 5.079 MB / 477.6 MB, free: 6.691 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007463/0.4401, allocations: 0.881 MB / 478.5 MB, free: 5.789 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000401/0.4405, allocations: 84.52 kB / 478.6 MB, free: 5.703 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003938/0.4409, allocations: 231.3 kB / 478.8 MB, free: 5.477 MB / 382.1 MB Notification: Performance of SimCode: time 1.412e-06/0.4409, allocations: 0 / 478.8 MB, free: 5.477 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06901/0.5099, allocations: 11.87 MB / 490.7 MB, free: 9.746 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.56/15.07, allocations: 12.06 kB / 490.7 MB, free: 9.734 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.77053886302747]