Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.001289/0.001289, allocations: 116.5 kB / 20.43 MB, free: 1.301 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.001651/0.001651, allocations: 206.6 kB / 23.74 MB, free: 4.539 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.394/1.394, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002154/0.002154, allocations: 71.89 kB / 377.8 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2285, allocations: 53.41 MB / 431.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006969/0.2355, allocations: 5.488 MB / 436.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003566/0.239, allocations: 2.173 MB / 438.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004676/0.2395, allocations: 55.56 kB / 438.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004569/0.24, allocations: 202.2 kB / 439.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003408/0.2403, allocations: 178.4 kB / 439.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008507/0.2412, allocations: 422.7 kB / 439.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001019/0.2422, allocations: 1.009 MB / 440.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006403/0.2428, allocations: 421.6 kB / 441.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004424/0.2433, allocations: 350.9 kB / 441.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004211/0.2437, allocations: 366.3 kB / 441.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.2438, allocations: 96 kB / 441.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002428/0.244, allocations: 155.9 kB / 442 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001838/0.2442, allocations: 207.4 kB / 442.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003706/0.2446, allocations: 445.9 kB / 442.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.2458, allocations: 1.191 MB / 443.9 MB, free: 9.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2458, allocations: 0 / 443.9 MB, free: 9.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2458, allocations: 0 / 443.9 MB, free: 9.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.727e-05/0.2458, allocations: 0 / 443.9 MB, free: 9.91 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001389/0.2472, allocations: 0.9765 MB / 444.9 MB, free: 8.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.2472, allocations: 8.031 kB / 444.9 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001348/0.2474, allocations: 135.5 kB / 445 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002313/0.2476, allocations: 104.4 kB / 445.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007673/0.2484, allocations: 464.3 kB / 445.6 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.386e-05/0.2484, allocations: 70.38 kB / 445.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.2485, allocations: 88.33 kB / 445.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.2498, allocations: 0.8084 MB / 446.5 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.25e-05/0.2498, allocations: 4 kB / 446.5 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.395e-05/0.2499, allocations: 36 kB / 446.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-05/0.2499, allocations: 20 kB / 446.6 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009348/0.2509, allocations: 0.4918 MB / 447.1 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003153/0.254, allocations: 2.772 MB / 449.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005255/0.2545, allocations: 214.2 kB / 450 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.2547, allocations: 92.81 kB / 450.1 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000114/0.2548, allocations: 19.98 kB / 450.2 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.2549, allocations: 39.06 kB / 450.2 MB, free: 3.352 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.543e-06/0.2549, allocations: 0 / 450.2 MB, free: 3.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002198/0.2571, allocations: 1.116 MB / 451.3 MB, free: 2.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.013e-05/0.2571, allocations: 55.41 kB / 451.4 MB, free: 2.109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/0.2574, allocations: 317.5 kB / 451.7 MB, free: 1.793 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.2574, allocations: 33.7 kB / 451.7 MB, free: 1.754 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002596/0.2577, allocations: 399.8 kB / 452.1 MB, free: 1.355 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.2578, allocations: 142.8 kB / 452.2 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.2579, allocations: 98.08 kB / 452.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.2581, allocations: 354.7 kB / 452.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001972/0.2583, allocations: 108.9 kB / 452.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/0.2586, allocations: 250.1 kB / 453 MB, free: 352 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005442/0.2591, allocations: 388.6 kB / 453.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2591, allocations: 0 / 453.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007055/0.2598, allocations: 461.3 kB / 453.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.2599, allocations: 8.594 kB / 453.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.2599, allocations: 8 kB / 453.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001697/0.26, allocations: 36.78 kB / 453.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003353/0.2604, allocations: 107.9 kB / 454 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003948/0.2608, allocations: 0.5562 MB / 454.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.2609, allocations: 20 kB / 454.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.261, allocations: 20 kB / 454.6 MB, free: 14.66 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000265/0.2612, allocations: 217.8 kB / 454.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.758e-05/0.2613, allocations: 51.64 kB / 454.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005912/0.2619, allocations: 330 kB / 455.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.2619, allocations: 4 kB / 455.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2619, allocations: 4 kB / 455.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.2619, allocations: 3.984 kB / 455.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.2634, allocations: 0.9839 MB / 456.2 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.2635, allocations: 4 kB / 456.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003493/0.2638, allocations: 79.89 kB / 456.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001251/0.2639, allocations: 33 kB / 456.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.437e-05/0.2639, allocations: 12 kB / 456.3 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003823/0.2643, allocations: 0.5484 MB / 456.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2643, allocations: 0 / 456.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008495/0.2652, allocations: 0.5448 MB / 457.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.91e-05/0.2652, allocations: 31.77 kB / 457.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.587e-05/0.2653, allocations: 8 kB / 457.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.2654, allocations: 12 kB / 457.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.58e-05/0.2655, allocations: 23.95 kB / 457.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-05/0.2655, allocations: 15.94 kB / 457.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002298/0.2657, allocations: 215.3 kB / 457.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2657, allocations: 3.938 kB / 457.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004915/0.2662, allocations: 127.9 kB / 457.8 MB, free: 11.28 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001343/0.2676, allocations: 1.109 MB / 459 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006103/0.2682, allocations: 291.8 kB / 459.2 MB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2682, allocations: 1.188 kB / 459.2 MB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002606/0.2685, allocations: 132.1 kB / 459.4 MB, free: 9.715 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.2689, allocations: 65.72 kB / 459.4 MB, free: 9.652 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005771/0.2747, allocations: 4.414 MB / 463.8 MB, free: 5.008 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005607/0.2753, allocations: 0.9249 MB / 464.8 MB, free: 4.059 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001509/0.2754, allocations: 47.33 kB / 464.8 MB, free: 4.008 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002806/0.2757, allocations: 247.3 kB / 465.1 MB, free: 3.766 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2757, allocations: 0 / 465.1 MB, free: 3.766 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04106/0.3167, allocations: 8.734 MB / 473.8 MB, free: 11.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.1, allocations: 2.656 kB / 473.8 MB, free: 11.17 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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: 15.411127449013293]