Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.001271/0.001271, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001755/0.001755, allocations: 207.2 kB / 23.73 MB, free: 4.523 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.394/1.394, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 51.91 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2297, allocations: 53.36 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006433/0.2361, allocations: 4.846 MB / 435.9 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003321/0.2394, allocations: 2.052 MB / 438 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003927/0.2398, allocations: 51.56 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004437/0.2403, allocations: 210.2 kB / 438.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003513/0.2406, allocations: 174.4 kB / 438.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009649/0.2416, allocations: 407 kB / 438.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.2427, allocations: 1.013 MB / 439.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000691/0.2434, allocations: 421.4 kB / 440.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005286/0.244, allocations: 350.8 kB / 440.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004603/0.2444, allocations: 374.3 kB / 440.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001133/0.2445, allocations: 92 kB / 441 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002868/0.2448, allocations: 159.9 kB / 441.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002039/0.245, allocations: 199.4 kB / 441.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003456/0.2454, allocations: 350.5 kB / 441.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001219/0.2466, allocations: 1.2 MB / 442.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2466, allocations: 0 / 442.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2466, allocations: 0 / 442.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.2466, allocations: 0 / 442.9 MB, free: 10.75 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.001492/0.2481, allocations: 0.9804 MB / 443.9 MB, free: 9.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.2481, allocations: 8.031 kB / 443.9 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001641/0.2483, allocations: 135.5 kB / 444 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002565/0.2486, allocations: 108.3 kB / 444.1 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008613/0.2494, allocations: 460.3 kB / 444.6 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.134e-05/0.2495, allocations: 66.38 kB / 444.7 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.2496, allocations: 88.33 kB / 444.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.251, allocations: 0.8045 MB / 445.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.255e-05/0.251, allocations: 4 kB / 445.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.03e-05/0.2511, allocations: 32 kB / 445.6 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.2511, allocations: 24 kB / 445.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009525/0.2521, allocations: 0.4918 MB / 446.1 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003184/0.2553, allocations: 2.589 MB / 448.7 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005269/0.2558, allocations: 203.8 kB / 448.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.256, allocations: 92.81 kB / 449 MB, free: 4.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001146/0.2561, allocations: 19.98 kB / 449 MB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.2561, allocations: 43.06 kB / 449 MB, free: 4.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.583e-06/0.2561, allocations: 0 / 449 MB, free: 4.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002294/0.2584, allocations: 1.108 MB / 450.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.2584, allocations: 59.34 kB / 450.2 MB, free: 3.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003308/0.2588, allocations: 325.5 kB / 450.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.661e-05/0.2588, allocations: 33.7 kB / 450.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.2591, allocations: 407.7 kB / 450.9 MB, free: 2.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.2592, allocations: 142.8 kB / 451.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.2593, allocations: 86.14 kB / 451.2 MB, free: 2.148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2595, allocations: 350.7 kB / 451.5 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/0.2597, allocations: 116.9 kB / 451.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003131/0.26, allocations: 252.6 kB / 451.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005515/0.2605, allocations: 392.7 kB / 452.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.2605, allocations: 4 kB / 452.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007034/0.2612, allocations: 457.5 kB / 452.7 MB, free: 480 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.2613, allocations: 8 kB / 452.7 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.2613, allocations: 7.938 kB / 452.7 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001754/0.2614, allocations: 40.84 kB / 452.8 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003406/0.2618, allocations: 107.8 kB / 452.9 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004113/0.2622, allocations: 0.564 MB / 453.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001732/0.2624, allocations: 12.44 kB / 453.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.974e-05/0.2624, allocations: 28 kB / 453.5 MB, free: 15.68 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.000264/0.2627, allocations: 217.6 kB / 453.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.931e-05/0.2627, allocations: 43.7 kB / 453.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005872/0.2633, allocations: 326.1 kB / 454 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.2633, allocations: 4 kB / 454 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2633, allocations: 48 / 454 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.2633, allocations: 7.969 kB / 454.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001371/0.2647, allocations: 0.9489 MB / 455 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2647, allocations: 0 / 455 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003527/0.2651, allocations: 79.89 kB / 455.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001188/0.2652, allocations: 32.84 kB / 455.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.2652, allocations: 8 kB / 455.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003555/0.2656, allocations: 0.5563 MB / 455.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2656, allocations: 4.062 kB / 455.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007469/0.2663, allocations: 0.5448 MB / 456.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.142e-05/0.2664, allocations: 31.77 kB / 456.3 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/0.2664, allocations: 12 kB / 456.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.2666, allocations: 11.98 kB / 456.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.897e-05/0.2666, allocations: 15.97 kB / 456.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.199e-05/0.2666, allocations: 23.92 kB / 456.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001999/0.2668, allocations: 215.2 kB / 456.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2668, allocations: 4 kB / 456.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004508/0.2673, allocations: 116.2 kB / 456.7 MB, free: 12.35 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.001098/0.2684, allocations: 1.116 MB / 457.8 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005555/0.269, allocations: 296.6 kB / 458.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.269, allocations: 7.938 kB / 458.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002543/0.2692, allocations: 131.8 kB / 458.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004643/0.2697, allocations: 64.75 kB / 458.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00573/0.2754, allocations: 4.413 MB / 462.7 MB, free: 6.055 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/0.2757, allocations: 329.6 kB / 463 MB, free: 5.711 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001555/0.2759, allocations: 49.95 kB / 463 MB, free: 5.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003024/0.2762, allocations: 247.3 kB / 463.3 MB, free: 5.418 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.2762, allocations: 4 kB / 463.3 MB, free: 5.414 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03874/0.3149, allocations: 9.063 MB / 472.3 MB, free: 12.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.32, allocations: 0 / 472.3 MB, free: 12.55 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.591860249987803]