Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001423/0.001423, allocations: 105.7 kB / 19.74 MB, free: 2.453 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.001593/0.001593, allocations: 215.9 kB / 22.92 MB, free: 5.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.281/1.281, allocations: 230.4 MB / 256.4 MB, free: 8.25 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001742/0.001742, allocations: 67.89 kB / 376.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2018/0.2035, allocations: 53.32 MB / 429.4 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006404/0.2099, allocations: 5.503 MB / 434.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002971/0.2129, allocations: 2.161 MB / 437 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003085/0.2132, allocations: 43.75 kB / 437.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003962/0.2136, allocations: 202.2 kB / 437.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002956/0.2139, allocations: 174.4 kB / 437.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007552/0.2147, allocations: 422.7 kB / 437.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009468/0.2156, allocations: 1.013 MB / 438.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000587/0.2162, allocations: 417.1 kB / 439.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003809/0.2166, allocations: 342.8 kB / 439.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003943/0.217, allocations: 370.2 kB / 440 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.2171, allocations: 96 kB / 440.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002344/0.2173, allocations: 160 kB / 440.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001814/0.2175, allocations: 211.3 kB / 440.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000358/0.2178, allocations: 430 kB / 440.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.2189, allocations: 1.195 MB / 442.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2189, allocations: 0 / 442.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2189, allocations: 0 / 442.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.779e-06/0.219, allocations: 0 / 442.1 MB, free: 10.7 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.001356/0.2203, allocations: 1.063 MB / 443.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.2203, allocations: 8.031 kB / 443.1 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001431/0.2205, allocations: 131.5 kB / 443.3 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000228/0.2207, allocations: 104.4 kB / 443.4 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006836/0.2214, allocations: 0.5223 MB / 443.9 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.115e-05/0.2214, allocations: 62.38 kB / 443.9 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.2216, allocations: 88.33 kB / 444 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.2228, allocations: 0.8084 MB / 444.8 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.76e-05/0.2228, allocations: 4 kB / 444.8 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.082e-05/0.2229, allocations: 36 kB / 444.9 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.486e-05/0.2229, allocations: 20 kB / 444.9 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009193/0.2238, allocations: 0.4957 MB / 445.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003347/0.2272, allocations: 2.861 MB / 448.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005044/0.2277, allocations: 210.7 kB / 448.5 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000167/0.2279, allocations: 96.75 kB / 448.6 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002236/0.2281, allocations: 251.2 kB / 448.8 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.2281, allocations: 35.06 kB / 448.8 MB, free: 3.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.342e-06/0.2281, allocations: 0 / 448.8 MB, free: 3.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002198/0.2303, allocations: 1.27 MB / 450.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/0.2304, allocations: 55.41 kB / 450.2 MB, free: 2.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003053/0.2307, allocations: 313.7 kB / 450.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.2307, allocations: 33.7 kB / 450.5 MB, free: 1.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002643/0.2309, allocations: 403.7 kB / 450.9 MB, free: 1.391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.2311, allocations: 142.8 kB / 451 MB, free: 1.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.2312, allocations: 90.2 kB / 451.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.2313, allocations: 350.7 kB / 451.5 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001995/0.2315, allocations: 113 kB / 451.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002964/0.2318, allocations: 261.2 kB / 451.8 MB, free: 388 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005273/0.2323, allocations: 388.7 kB / 452.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2324, allocations: 4 kB / 452.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006901/0.233, allocations: 461.6 kB / 452.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.2331, allocations: 11.12 kB / 452.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.2331, allocations: 4 kB / 452.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001643/0.2332, allocations: 36.84 kB / 452.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/0.2336, allocations: 115.8 kB / 452.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003951/0.234, allocations: 0.5603 MB / 453.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001658/0.2341, allocations: 16 kB / 453.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.553e-05/0.2342, allocations: 20 kB / 453.4 MB, free: 14.69 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.0002526/0.2344, allocations: 221.6 kB / 453.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.132e-05/0.2345, allocations: 39.7 kB / 453.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005906/0.2351, allocations: 318.4 kB / 454 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.2351, allocations: 4 kB / 454 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.2351, allocations: 0 / 454 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.2351, allocations: 3.984 kB / 454 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.2364, allocations: 1.02 MB / 455 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2364, allocations: 0 / 455 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003399/0.2368, allocations: 83.89 kB / 455.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001059/0.2369, allocations: 28.84 kB / 455.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/0.2369, allocations: 11.98 kB / 455.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003616/0.2373, allocations: 0.5523 MB / 455.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2373, allocations: 8.156 kB / 455.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007441/0.238, allocations: 0.5412 MB / 456.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.784e-05/0.2381, allocations: 116.9 kB / 456.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.972e-05/0.2381, allocations: 8 kB / 456.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.2383, allocations: 8 kB / 456.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.02e-05/0.2383, allocations: 23.97 kB / 456.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.2383, allocations: 11.94 kB / 456.4 MB, free: 11.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002053/0.2385, allocations: 219.2 kB / 456.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2385, allocations: 0 / 456.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004384/0.239, allocations: 116 kB / 456.7 MB, free: 11.2 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.001087/0.2401, allocations: 1.117 MB / 457.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005459/0.2406, allocations: 288.9 kB / 458.1 MB, free: 9.758 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.2406, allocations: 8.125 kB / 458.1 MB, free: 9.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002467/0.2409, allocations: 131.8 kB / 458.3 MB, free: 9.621 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004657/0.2413, allocations: 77.36 kB / 458.3 MB, free: 9.547 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005352/0.2467, allocations: 4.404 MB / 462.7 MB, free: 4.914 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005492/0.2472, allocations: 0.9249 MB / 463.7 MB, free: 3.965 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001357/0.2474, allocations: 47.33 kB / 463.7 MB, free: 3.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002766/0.2476, allocations: 239.4 kB / 464 MB, free: 3.684 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2476, allocations: 384 / 464 MB, free: 3.684 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0343/0.282, allocations: 8.392 MB / 472.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.9, allocations: 11.39 kB / 472.4 MB, free: 11.43 MB / 382.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.04280105700309]