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.001518/0.001518, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001662/0.001662, allocations: 216.9 kB / 24.53 MB, free: 4.012 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.377/1.377, allocations: 230.5 MB / 258.2 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.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002562/0.002562, allocations: 59.91 kB / 378.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2487, allocations: 53.4 MB / 432 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006649/0.2554, allocations: 5.492 MB / 437.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003514/0.2589, allocations: 2.169 MB / 439.6 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004094/0.2593, allocations: 51.56 kB / 439.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004574/0.2597, allocations: 206.2 kB / 439.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003412/0.2601, allocations: 178.4 kB / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008431/0.2609, allocations: 418.7 kB / 440.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009937/0.2619, allocations: 1.009 MB / 441.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006018/0.2625, allocations: 417.6 kB / 441.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004244/0.2629, allocations: 358.8 kB / 442.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000421/0.2634, allocations: 370.3 kB / 442.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.2635, allocations: 92 kB / 442.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002481/0.2637, allocations: 159.9 kB / 442.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002109/0.2639, allocations: 211.4 kB / 443 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000371/0.2643, allocations: 430 kB / 443.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.2655, allocations: 1.195 MB / 444.7 MB, free: 9.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2655, allocations: 0 / 444.7 MB, free: 9.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2655, allocations: 0 / 444.7 MB, free: 9.926 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.2655, allocations: 0 / 444.7 MB, free: 9.926 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.001407/0.2669, allocations: 0.9881 MB / 445.6 MB, free: 8.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.2669, allocations: 12.03 kB / 445.7 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.982e-05/0.267, allocations: 22.19 kB / 445.7 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001498/0.2671, allocations: 139.4 kB / 445.8 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002351/0.2674, allocations: 100.4 kB / 445.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007642/0.2681, allocations: 464.3 kB / 446.4 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.721e-05/0.2682, allocations: 62.38 kB / 446.4 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.2683, allocations: 96.27 kB / 446.5 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.2696, allocations: 0.7966 MB / 447.3 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.254e-05/0.2696, allocations: 12 kB / 447.3 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-05/0.2697, allocations: 32 kB / 447.4 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.991e-05/0.2697, allocations: 20 kB / 447.4 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000932/0.2707, allocations: 0.4918 MB / 447.9 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003274/0.2739, allocations: 2.776 MB / 450.6 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005563/0.2745, allocations: 214.1 kB / 450.9 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.2747, allocations: 100.8 kB / 451 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000118/0.2748, allocations: 19.98 kB / 451 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.2748, allocations: 31.06 kB / 451 MB, free: 3.332 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.944e-06/0.2748, allocations: 0 / 451 MB, free: 3.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002324/0.2771, allocations: 1.117 MB / 452.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.2772, allocations: 55.41 kB / 452.2 MB, free: 2.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000337/0.2775, allocations: 317.5 kB / 452.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.2775, allocations: 33.7 kB / 452.5 MB, free: 1.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002913/0.2778, allocations: 411.8 kB / 452.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.278, allocations: 142.8 kB / 453.1 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.2781, allocations: 86.14 kB / 453.1 MB, free: 1.098 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.2783, allocations: 346.8 kB / 453.5 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.2785, allocations: 112.8 kB / 453.6 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003207/0.2788, allocations: 250.1 kB / 453.8 MB, free: 340 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005342/0.2793, allocations: 392.7 kB / 454.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2793, allocations: 4 kB / 454.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007073/0.28, allocations: 457.4 kB / 454.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.2801, allocations: 8 kB / 454.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.2801, allocations: 7.984 kB / 454.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001749/0.2802, allocations: 40.84 kB / 454.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003377/0.2806, allocations: 104.4 kB / 454.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004213/0.281, allocations: 0.564 MB / 455.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.2812, allocations: 16 kB / 455.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.2812, allocations: 24 kB / 455.4 MB, free: 14.64 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.0003021/0.2815, allocations: 213.7 kB / 455.6 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.267e-05/0.2816, allocations: 39.7 kB / 455.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006062/0.2822, allocations: 329.8 kB / 456 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.2822, allocations: 7.984 kB / 456 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.2822, allocations: 0 / 456 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.2822, allocations: 0 / 456 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.2836, allocations: 0.9878 MB / 457 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2836, allocations: 0 / 457 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003542/0.284, allocations: 87.89 kB / 457.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001164/0.2841, allocations: 36.81 kB / 457.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.593e-05/0.2841, allocations: 15.92 kB / 457.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003553/0.2845, allocations: 0.5486 MB / 457.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.2845, allocations: 8.016 kB / 457.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000763/0.2853, allocations: 0.5331 MB / 458.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.792e-05/0.2853, allocations: 35.77 kB / 458.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.697e-05/0.2854, allocations: 11.98 kB / 458.3 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.2855, allocations: 8 kB / 458.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.158e-05/0.2856, allocations: 27.89 kB / 458.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.2856, allocations: 12 kB / 458.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002135/0.2858, allocations: 219.2 kB / 458.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2858, allocations: 0 / 458.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004958/0.2863, allocations: 123.9 kB / 458.6 MB, free: 11.27 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.001133/0.2874, allocations: 1.101 MB / 459.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000576/0.288, allocations: 304.3 kB / 460 MB, free: 9.824 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.288, allocations: 0 / 460 MB, free: 9.824 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002584/0.2883, allocations: 131.8 kB / 460.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005066/0.2888, allocations: 66.34 kB / 460.2 MB, free: 9.633 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005919/0.2947, allocations: 4.416 MB / 464.7 MB, free: 4.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005816/0.2953, allocations: 0.9171 MB / 465.6 MB, free: 4.039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001764/0.2955, allocations: 55.19 kB / 465.6 MB, free: 3.984 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002801/0.2957, allocations: 239.4 kB / 465.9 MB, free: 3.75 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.2957, allocations: 0 / 465.9 MB, free: 3.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0445/0.3402, allocations: 8.758 MB / 474.6 MB, free: 11.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/12.73, allocations: 14.09 kB / 474.6 MB, free: 11.13 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.123734325985424]