Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.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.00147/0.00147, allocations: 105.1 kB / 21.22 MB, free: 0.6211 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.001778/0.001778, allocations: 209.2 kB / 24.52 MB, free: 3.91 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.451/1.451, allocations: 230.5 MB / 258.2 MB, free: 7.789 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.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 63.89 kB / 378.5 MB, free: 2.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2756, allocations: 53.4 MB / 431.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.009077/0.2847, allocations: 5.813 MB / 437.7 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004959/0.2896, allocations: 2.283 MB / 440 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009424/0.2906, allocations: 23.88 kB / 440 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009732/0.2915, allocations: 357.7 kB / 440.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001418/0.293, allocations: 0.5405 MB / 440.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.2942, allocations: 459.3 kB / 441.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002306/0.2965, allocations: 1.561 MB / 442.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006942/0.2972, allocations: 358 kB / 443.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001116/0.2983, allocations: 0.6112 MB / 443.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009933/0.2993, allocations: 0.6809 MB / 444.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002203/0.2995, allocations: 164 kB / 444.7 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003957/0.2999, allocations: 196 kB / 444.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003681/0.3003, allocations: 334.9 kB / 445.2 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006631/0.301, allocations: 0.5561 MB / 445.8 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002388/0.3034, allocations: 1.992 MB / 447.8 MB, free: 6.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.3034, allocations: 0 / 447.8 MB, free: 6.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3034, allocations: 0 / 447.8 MB, free: 6.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.883e-05/0.3034, allocations: 0 / 447.8 MB, free: 6.488 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003377/0.3068, allocations: 1.497 MB / 449.3 MB, free: 4.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.3068, allocations: 12.03 kB / 449.3 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.546e-05/0.3069, allocations: 22.19 kB / 449.3 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001908/0.3071, allocations: 152.3 kB / 449.5 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005871/0.3076, allocations: 168.1 kB / 449.6 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/0.309, allocations: 0.6853 MB / 450.3 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8e-05/0.3091, allocations: 74 kB / 450.4 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.3092, allocations: 92 kB / 450.5 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001961/0.3112, allocations: 1.04 MB / 451.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/0.3112, allocations: 0 / 451.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.019e-05/0.3113, allocations: 40 kB / 451.6 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.44e-05/0.3113, allocations: 27.94 kB / 451.6 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001744/0.3131, allocations: 0.8172 MB / 452.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005561/0.3186, allocations: 3.053 MB / 455.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002032/0.3207, allocations: 0.5938 MB / 456.1 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006022/0.3213, allocations: 299.1 kB / 456.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.036e-05/0.3213, allocations: 12 kB / 456.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.3214, allocations: 42.88 kB / 456.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 3.466e-06/0.3214, allocations: 0 / 456.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.004432/0.3258, allocations: 1.689 MB / 458.1 MB, free: 11.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.52e-05/0.3259, allocations: 89.09 kB / 458.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001476/0.3274, allocations: 1.034 MB / 459.2 MB, free: 10.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.846e-05/0.3274, allocations: 37.7 kB / 459.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004763/0.3279, allocations: 0.5584 MB / 459.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002066/0.3281, allocations: 245.9 kB / 460 MB, free: 9.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002879/0.3284, allocations: 162.6 kB / 460.2 MB, free: 9.766 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.3286, allocations: 345.9 kB / 460.5 MB, free: 9.422 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007478/0.3293, allocations: 305.8 kB / 460.8 MB, free: 9.121 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009323/0.3302, allocations: 499.1 kB / 461.3 MB, free: 8.559 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001575/0.3318, allocations: 0.7786 MB / 462.1 MB, free: 7.707 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.3318, allocations: 0 / 462.1 MB, free: 7.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002214/0.334, allocations: 0.975 MB / 463.1 MB, free: 6.727 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.3341, allocations: 12.03 kB / 463.1 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.3341, allocations: 4 kB / 463.1 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.56e-05/0.3341, allocations: 8 kB / 463.1 MB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.3353, allocations: 271.6 kB / 463.4 MB, free: 6.438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.167e-05/0.3353, allocations: 15.94 kB / 463.4 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000796/0.3361, allocations: 55.89 kB / 463.4 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.446e-05/0.3362, allocations: 39.98 kB / 463.5 MB, free: 6.328 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (112): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005123/0.3367, allocations: 285.6 kB / 463.8 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001868/0.3369, allocations: 111.3 kB / 463.9 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008475/0.3377, allocations: 354.7 kB / 464.2 MB, free: 5.578 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/0.3377, allocations: 8 kB / 464.2 MB, free: 5.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.3378, allocations: 0 / 464.2 MB, free: 5.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.3378, allocations: 7.922 kB / 464.2 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003957/0.3417, allocations: 2.102 MB / 466.3 MB, free: 3.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.3417, allocations: 4 kB / 466.3 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008648/0.3426, allocations: 208.3 kB / 466.5 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.387e-05/0.3426, allocations: 8 kB / 466.6 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.349e-05/0.3427, allocations: 27.92 kB / 466.6 MB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-05/0.3427, allocations: 15.94 kB / 466.6 MB, free: 3.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/0.3427, allocations: 11.94 kB / 466.6 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/0.3445, allocations: 1.029 MB / 467.6 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002781/0.3448, allocations: 119.3 kB / 467.8 MB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.3449, allocations: 24 kB / 467.8 MB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006371/0.3455, allocations: 55.89 kB / 467.8 MB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.3457, allocations: 71.66 kB / 467.9 MB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.138e-05/0.3457, allocations: 27.98 kB / 467.9 MB, free: 1.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001051/0.3468, allocations: 0.719 MB / 468.6 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3468, allocations: 0 / 468.6 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008415/0.3476, allocations: 212 kB / 468.9 MB, free: 0.6953 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (67): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003297/0.3509, allocations: 1.859 MB / 470.7 MB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.3526, allocations: 0.6948 MB / 471.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.208e-06/0.3526, allocations: 4 kB / 471.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007728/0.3534, allocations: 349.7 kB / 471.8 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.3547, allocations: 240.4 kB / 472 MB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01437/0.369, allocations: 8.462 MB / 480.4 MB, free: 4.699 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005417/0.3696, allocations: 447.9 kB / 480.9 MB, free: 4.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000614/0.3702, allocations: 131.5 kB / 481 MB, free: 4.098 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006101/0.3708, allocations: 399.3 kB / 481.4 MB, free: 3.707 MB / 382.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3708, allocations: 0 / 481.4 MB, free: 3.707 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05602/0.4268, allocations: 22.21 MB / 0.4918 GB, free: 13.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/13.92, allocations: 7.672 kB / 0.4918 GB, free: 13.7 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --stepSize=0.0001 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 22.475984503980726]