Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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.001592/0.001592, allocations: 112.2 kB / 21.22 MB, free: 0.7344 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.00181/0.00181, allocations: 208.4 kB / 24.52 MB, free: 4.141 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.4/1.4, allocations: 230.6 MB / 258.3 MB, free: 7.977 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.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 48.06 kB / 378.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2457, allocations: 53.36 MB / 431.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.0082/0.2539, allocations: 6.492 MB / 438.4 MB, free: 348 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004026/0.2579, allocations: 1.928 MB / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008672/0.2588, allocations: 23.88 kB / 440.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007004/0.2595, allocations: 218 kB / 440.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001138/0.2606, allocations: 428.7 kB / 441 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007534/0.2613, allocations: 371.6 kB / 441.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001744/0.2631, allocations: 1.503 MB / 442.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005432/0.2636, allocations: 349.9 kB / 443.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006795/0.2643, allocations: 0.5723 MB / 443.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007482/0.2651, allocations: 0.6107 MB / 444.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001925/0.2653, allocations: 160 kB / 444.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002448/0.2655, allocations: 164 kB / 444.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002534/0.2658, allocations: 315 kB / 445 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006032/0.2664, allocations: 0.6534 MB / 445.7 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001932/0.2683, allocations: 1.903 MB / 447.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2683, allocations: 0 / 447.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2683, allocations: 0 / 447.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.2683, allocations: 0 / 447.6 MB, free: 7.133 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002702/0.271, allocations: 1.392 MB / 449 MB, free: 5.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.2711, allocations: 12.03 kB / 449 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.937e-05/0.2711, allocations: 26.19 kB / 449 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001778/0.2713, allocations: 156.4 kB / 449.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005025/0.2718, allocations: 152.1 kB / 449.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.2729, allocations: 0.638 MB / 449.9 MB, free: 4.691 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.575e-05/0.273, allocations: 74 kB / 450 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/0.2732, allocations: 99.98 kB / 450.1 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/0.2748, allocations: 0.9662 MB / 451.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.497e-05/0.2749, allocations: 11.95 kB / 451.1 MB, free: 3.531 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.858e-05/0.275, allocations: 43.98 kB / 451.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.324e-05/0.275, allocations: 24 kB / 451.2 MB, free: 3.465 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001554/0.2765, allocations: 0.8015 MB / 452 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004974/0.2815, allocations: 3.244 MB / 455.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.2828, allocations: 0.7679 MB / 456 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007323/0.2836, allocations: 413.8 kB / 456.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.047e-05/0.2836, allocations: 16.5 kB / 456.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.2837, allocations: 43.69 kB / 456.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of pre-optimization done (n=95): time 2.465e-06/0.2837, allocations: 0 / 456.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=119): time 0.008425/0.2921, allocations: 3.818 MB / 460.2 MB, free: 10.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.935e-05/0.2922, allocations: 93.77 kB / 460.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008558/0.293, allocations: 0.6369 MB / 461 MB, free: 9.371 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.855e-05/0.2931, allocations: 49.7 kB / 461 MB, free: 9.316 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003354/0.2934, allocations: 441.1 kB / 461.5 MB, free: 8.879 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003416/0.2938, allocations: 428.3 kB / 461.9 MB, free: 8.457 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002939/0.2941, allocations: 190.8 kB / 462.1 MB, free: 8.266 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002217/0.2943, allocations: 398.7 kB / 462.4 MB, free: 7.867 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000697/0.295, allocations: 354.5 kB / 462.8 MB, free: 7.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007838/0.2958, allocations: 480.7 kB / 463.3 MB, free: 7.012 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.2972, allocations: 0.8549 MB / 464.1 MB, free: 6.121 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.2972, allocations: 0 / 464.1 MB, free: 6.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002114/0.2993, allocations: 1.142 MB / 465.3 MB, free: 4.961 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.2993, allocations: 8 kB / 465.3 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.2994, allocations: 4 kB / 465.3 MB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000395/0.2997, allocations: 138.7 kB / 465.4 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009787/0.3007, allocations: 231.7 kB / 465.6 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004067/0.3048, allocations: 4.666 MB / 470.3 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006285/0.3054, allocations: 40.08 kB / 470.3 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.439e-05/0.3055, allocations: 43.98 kB / 470.4 MB, free: 15.49 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004604/0.306, allocations: 277.5 kB / 470.7 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.3061, allocations: 103.3 kB / 470.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0015/0.3076, allocations: 0.7453 MB / 471.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.3076, allocations: 12 kB / 471.5 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.3077, allocations: 4 kB / 471.5 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.337e-05/0.3077, allocations: 7.922 kB / 471.5 MB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004046/0.3117, allocations: 2.576 MB / 474.1 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.934e-06/0.3117, allocations: 4 kB / 474.1 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008309/0.3126, allocations: 195.8 kB / 474.3 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004313/0.313, allocations: 151.4 kB / 474.4 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.625e-05/0.3131, allocations: 27.98 kB / 474.5 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004838/0.3179, allocations: 5.58 MB / 480 MB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3179, allocations: 4.031 kB / 480.1 MB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002804/0.3207, allocations: 1.665 MB / 481.7 MB, free: 3.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004069/0.3211, allocations: 175.4 kB / 481.9 MB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.3212, allocations: 31.92 kB / 481.9 MB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005229/0.3218, allocations: 39.92 kB / 482 MB, free: 3.277 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001837/0.3219, allocations: 84.44 kB / 482 MB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.207e-05/0.322, allocations: 35.98 kB / 482.1 MB, free: 3.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006316/0.3226, allocations: 459.1 kB / 482.5 MB, free: 2.715 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3226, allocations: 0 / 482.5 MB, free: 2.715 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009217/0.3236, allocations: 260 kB / 482.8 MB, free: 2.461 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i,pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi) * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003121/0.3267, allocations: 2.244 MB / 485 MB, free: 180 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002312/0.329, allocations: 1.231 MB / 486.3 MB, free: 14.9 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.329, allocations: 4 kB / 486.3 MB, free: 14.9 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001454/0.3304, allocations: 0.94 MB / 487.2 MB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.3317, allocations: 200.1 kB / 487.4 MB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/0.3445, allocations: 8.21 MB / 495.6 MB, free: 5.281 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006993/0.3452, allocations: 1.033 MB / 496.6 MB, free: 4.227 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005187/0.3457, allocations: 124 kB / 496.8 MB, free: 4.102 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00056/0.3463, allocations: 403.3 kB / 497.1 MB, free: 3.707 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3463, allocations: 4 kB / 497.2 MB, free: 3.703 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0634/0.4097, allocations: 22.51 MB / 0.5075 GB, free: 13.45 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.14, allocations: 7.938 kB / 0.5075 GB, free: 13.44 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=1e-05 --timeout=50 --tolerance=1e-07 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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: 16.139613470004406]