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.001745/0.001745, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.002083/0.002083, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.443/1.443, allocations: 230.6 MB / 258.3 MB, free: 8.055 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-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.001911/0.001911, allocations: 60.78 kB / 378.5 MB, free: 3.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.273, allocations: 53.38 MB / 431.9 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007378/0.2804, allocations: 5.483 MB / 437.4 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004614/0.285, allocations: 2.176 MB / 439.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001435/0.2865, allocations: 47.62 kB / 439.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000687/0.2872, allocations: 210.2 kB / 439.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006124/0.2878, allocations: 178.3 kB / 440 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.2889, allocations: 414.8 kB / 440.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001345/0.2903, allocations: 1.013 MB / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000744/0.291, allocations: 417.6 kB / 441.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005874/0.2916, allocations: 354.8 kB / 442.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004524/0.292, allocations: 370.3 kB / 442.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001105/0.2921, allocations: 92 kB / 442.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002914/0.2924, allocations: 159.9 kB / 442.8 MB, free: 12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001955/0.2926, allocations: 207.4 kB / 443 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004017/0.293, allocations: 430 kB / 443.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00135/0.2944, allocations: 1.199 MB / 444.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.2944, allocations: 0 / 444.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2944, allocations: 0 / 444.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.507e-05/0.2944, allocations: 0 / 444.6 MB, free: 10.18 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.001521/0.2959, allocations: 0.992 MB / 445.6 MB, free: 9.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.296, allocations: 12.03 kB / 445.6 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001507/0.2961, allocations: 135.5 kB / 445.7 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002384/0.2964, allocations: 100.4 kB / 445.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008011/0.2972, allocations: 456.3 kB / 446.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.369e-05/0.2972, allocations: 62.38 kB / 446.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.2974, allocations: 96.31 kB / 446.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.2987, allocations: 0.8007 MB / 447.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.676e-05/0.2988, allocations: 11.94 kB / 447.2 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.2e-05/0.2988, allocations: 32 kB / 447.3 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/0.2988, allocations: 24 kB / 447.3 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009806/0.2998, allocations: 499.6 kB / 447.8 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003364/0.3032, allocations: 2.776 MB / 450.6 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005592/0.3037, allocations: 212 kB / 450.8 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.3039, allocations: 96.81 kB / 450.9 MB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001256/0.3041, allocations: 19.98 kB / 450.9 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.3041, allocations: 31.06 kB / 450.9 MB, free: 3.617 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.783e-06/0.3041, allocations: 0 / 450.9 MB, free: 3.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002393/0.3065, allocations: 1.12 MB / 452 MB, free: 2.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.3065, allocations: 55.41 kB / 452.1 MB, free: 2.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000332/0.3069, allocations: 313.6 kB / 452.4 MB, free: 2.059 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.657e-05/0.3069, allocations: 29.7 kB / 452.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002839/0.3072, allocations: 411.8 kB / 452.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.3073, allocations: 142.8 kB / 453 MB, free: 1.473 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.3074, allocations: 90.14 kB / 453.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.3076, allocations: 350.7 kB / 453.4 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002095/0.3078, allocations: 108.9 kB / 453.5 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.3081, allocations: 254 kB / 453.8 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000543/0.3086, allocations: 392.7 kB / 454.1 MB, free: 168 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3086, allocations: 4 kB / 454.1 MB, free: 164 kB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007332/0.3094, allocations: 457.5 kB / 454.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3094, allocations: 11.94 kB / 454.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.3094, allocations: 4 kB / 454.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001874/0.3096, allocations: 36.83 kB / 454.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003512/0.3099, allocations: 111.8 kB / 454.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004263/0.3104, allocations: 0.5566 MB / 455.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001713/0.3105, allocations: 20 kB / 455.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/0.3106, allocations: 20 kB / 455.3 MB, free: 14.92 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.000288/0.3109, allocations: 226.4 kB / 455.6 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.501e-05/0.3109, allocations: 39.7 kB / 455.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006203/0.3116, allocations: 323.1 kB / 455.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.3116, allocations: 4 kB / 455.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3116, allocations: 3.984 kB / 455.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3116, allocations: 0 / 455.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001432/0.313, allocations: 0.9917 MB / 456.9 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.313, allocations: 0 / 456.9 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003522/0.3134, allocations: 79.89 kB / 457 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001344/0.3135, allocations: 36.78 kB / 457 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.052e-05/0.3135, allocations: 8 kB / 457 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003762/0.3139, allocations: 0.5486 MB / 457.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.3139, allocations: 8.094 kB / 457.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007771/0.3147, allocations: 0.541 MB / 458.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.919e-05/0.3147, allocations: 31.77 kB / 458.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.831e-05/0.3148, allocations: 15.98 kB / 458.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.3149, allocations: 8 kB / 458.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.386e-05/0.315, allocations: 27.98 kB / 458.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.315, allocations: 11.94 kB / 458.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002183/0.3152, allocations: 215.2 kB / 458.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3152, allocations: 0 / 458.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005128/0.3158, allocations: 123.9 kB / 458.6 MB, free: 11.55 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.001185/0.3169, allocations: 1.114 MB / 459.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000604/0.3176, allocations: 301 kB / 460 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3176, allocations: 0 / 460 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002634/0.3178, allocations: 135.8 kB / 460.1 MB, free: 9.969 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004814/0.3183, allocations: 71.34 kB / 460.2 MB, free: 9.902 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005897/0.3242, allocations: 4.421 MB / 464.6 MB, free: 5.242 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005918/0.3248, allocations: 0.9132 MB / 465.5 MB, free: 4.305 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001697/0.325, allocations: 54.31 kB / 465.6 MB, free: 4.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000296/0.3253, allocations: 243.4 kB / 465.8 MB, free: 4.012 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3253, allocations: 0 / 465.8 MB, free: 4.012 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03779/0.363, allocations: 8.682 MB / 474.5 MB, free: 11.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.49, allocations: 15.5 kB / 474.5 MB, free: 11.47 MB / 382.1 MB " [Timeout remaining time 647] (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 --stepSize=0.001 --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: 14.823298872914165] Failed to read output from testmodel.py, exit status != 0: ['time', 'directInertia.inertia.phi', 'directInertia.inertia.w', 'inertia2a.phi', 'inertia2a.w', 'inertia2b.phi', 'inertia2b.w', 'inertia3a.phi', 'inertia3a.w', 'inertia3b.phi', 'inertia3b.w'] 12.579874488990754 12.593874156 12.296413837 Calling exit ...