Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 108.8 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 187.8 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 225.7 MB / 253.3 MB, free: 13.06 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 51.92 kB / 371.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2256, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007276/0.2329, allocations: 5.471 MB / 428.9 MB, free: 9.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003723/0.2366, allocations: 2.095 MB / 431 MB, free: 7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006325/0.2372, allocations: 51.56 kB / 431 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000472/0.2377, allocations: 202.2 kB / 431.2 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000376/0.2381, allocations: 182.4 kB / 431.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008585/0.2389, allocations: 414.8 kB / 431.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001132/0.2401, allocations: 1.017 MB / 432.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006422/0.2407, allocations: 417.6 kB / 433.2 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003933/0.2411, allocations: 346.9 kB / 433.6 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000454/0.2416, allocations: 374.3 kB / 433.9 MB, free: 4 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.2417, allocations: 92 kB / 434 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002486/0.2419, allocations: 151.9 kB / 434.2 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002409/0.2422, allocations: 207.4 kB / 434.4 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003964/0.2426, allocations: 430 kB / 434.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001372/0.2439, allocations: 1.191 MB / 436 MB, free: 1.949 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2439, allocations: 0 / 436 MB, free: 1.949 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2439, allocations: 0 / 436 MB, free: 1.949 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.665e-05/0.244, allocations: 4 kB / 436 MB, free: 1.945 MB / 334.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.001497/0.2455, allocations: 0.9688 MB / 437 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.2455, allocations: 12.03 kB / 437 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.464e-05/0.2455, allocations: 26.19 kB / 437 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000147/0.2457, allocations: 131.5 kB / 437.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.2458, allocations: 88.38 kB / 437.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007914/0.2466, allocations: 468.2 kB / 437.7 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.812e-05/0.2467, allocations: 62.38 kB / 437.7 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.2468, allocations: 88.33 kB / 437.8 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.2482, allocations: 0.8044 MB / 438.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/0.2482, allocations: 7.953 kB / 438.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.314e-05/0.2483, allocations: 36 kB / 438.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.946e-05/0.2483, allocations: 23.94 kB / 438.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009867/0.2493, allocations: 0.4996 MB / 439.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003627/0.2529, allocations: 2.765 MB / 442 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/0.2534, allocations: 208.5 kB / 442.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.2536, allocations: 101.3 kB / 442.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001023/0.2537, allocations: 15.98 kB / 442.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.2537, allocations: 38.56 kB / 442.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.764e-06/0.2538, allocations: 3.938 kB / 442.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002425/0.2562, allocations: 1.108 MB / 443.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.2562, allocations: 59.41 kB / 443.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003466/0.2566, allocations: 312.4 kB / 443.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.2566, allocations: 33.7 kB / 443.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/0.2569, allocations: 407.7 kB / 444.2 MB, free: 9.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.2571, allocations: 134.9 kB / 444.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.2572, allocations: 94.14 kB / 444.4 MB, free: 9.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002277/0.2574, allocations: 346.8 kB / 444.8 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.2576, allocations: 105 kB / 444.9 MB, free: 8.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003931/0.258, allocations: 250.1 kB / 445.1 MB, free: 8.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000642/0.2587, allocations: 392.8 kB / 445.5 MB, free: 7.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2587, allocations: 0 / 445.5 MB, free: 7.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008098/0.2595, allocations: 461.8 kB / 446 MB, free: 7.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.2595, allocations: 8 kB / 446 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.2595, allocations: 4 kB / 446 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001898/0.2597, allocations: 40.78 kB / 446 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003447/0.26, allocations: 103.9 kB / 446.1 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005146/0.2605, allocations: 0.5562 MB / 446.7 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.2607, allocations: 28.2 kB / 446.7 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.299e-05/0.2608, allocations: 20 kB / 446.7 MB, free: 6.715 MB / 350.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.0002921/0.2611, allocations: 217.6 kB / 446.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.008e-05/0.2612, allocations: 43.7 kB / 447 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006687/0.2618, allocations: 322.1 kB / 447.3 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.2618, allocations: 8 kB / 447.3 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2618, allocations: 3.938 kB / 447.3 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.2618, allocations: 0 / 447.3 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001583/0.2634, allocations: 0.9995 MB / 448.3 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.2634, allocations: 4 kB / 448.3 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003446/0.2638, allocations: 75.91 kB / 448.4 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001315/0.2639, allocations: 32.84 kB / 448.4 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.226e-05/0.2639, allocations: 15.92 kB / 448.4 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003779/0.2643, allocations: 0.5446 MB / 449 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2643, allocations: 0 / 449 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008716/0.2652, allocations: 0.549 MB / 449.5 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.368e-05/0.2652, allocations: 43.69 kB / 449.6 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.537e-05/0.2653, allocations: 8 kB / 449.6 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.2654, allocations: 8 kB / 449.6 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.088e-05/0.2655, allocations: 31.89 kB / 449.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.18e-05/0.2655, allocations: 8 kB / 449.6 MB, free: 3.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002575/0.2658, allocations: 207.2 kB / 449.8 MB, free: 3.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2658, allocations: 7.938 kB / 449.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004893/0.2663, allocations: 116 kB / 449.9 MB, free: 3.332 MB / 350.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.001202/0.2675, allocations: 1.112 MB / 451 MB, free: 2.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005775/0.2681, allocations: 280.8 kB / 451.3 MB, free: 1.898 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.2681, allocations: 4.25 kB / 451.3 MB, free: 1.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.2683, allocations: 135.8 kB / 451.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000496/0.2688, allocations: 75.05 kB / 451.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00621/0.275, allocations: 4.401 MB / 455.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007237/0.2757, allocations: 0.9249 MB / 456.9 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001681/0.2759, allocations: 47.33 kB / 456.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003107/0.2762, allocations: 247.3 kB / 457.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.2762, allocations: 0 / 457.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03343/0.3097, allocations: 8.731 MB / 465.9 MB, free: 3.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.49, allocations: 3.578 kB / 465.9 MB, free: 3.27 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 14.782154900021851]