Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 95 kB / 16.95 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 176.7 kB / 17.83 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004226/0.0004229, allocations: 16 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0864/0.08683, allocations: 47.58 MB / 328.5 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002283/0.08914, allocations: 1.953 MB / 330.4 MB, free: 2.016 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.09074, allocations: 0.9106 MB / 331.3 MB, free: 1.098 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001711/0.09094, allocations: 4 kB / 331.3 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001732/0.09112, allocations: 35.77 kB / 331.4 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004113/0.09155, allocations: 115.4 kB / 331.5 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003158/0.09187, allocations: 127.8 kB / 331.6 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003741/0.09226, allocations: 370.8 kB / 332 MB, free: 468 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.09241, allocations: 60.69 kB / 332 MB, free: 408 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002432/0.09266, allocations: 155.5 kB / 332.2 MB, free: 252 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002565/0.09292, allocations: 195.3 kB / 332.4 MB, free: 56 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.175e-05/0.09298, allocations: 16 kB / 332.4 MB, free: 40 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.09319, allocations: 95.88 kB / 332.5 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.09332, allocations: 75.78 kB / 332.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.121e-05/0.09341, allocations: 77.52 kB / 332.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003424/0.09376, allocations: 315.4 kB / 332.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.09377, allocations: 0 / 332.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.09378, allocations: 0 / 332.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.0938, allocations: 0 / 332.9 MB, free: 15.48 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001121/0.09493, allocations: 0.5808 MB / 333.5 MB, free: 14.85 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.09498, allocations: 12.03 kB / 333.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001188/0.0951, allocations: 70.53 kB / 333.6 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002853/0.0954, allocations: 47.61 kB / 333.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004183/0.09582, allocations: 298.5 kB / 333.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/0.09595, allocations: 79.95 kB / 334 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.715e-05/0.09602, allocations: 32 kB / 334 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006705/0.0967, allocations: 385.2 kB / 334.4 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.09673, allocations: 3.906 kB / 334.4 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.068e-05/0.09677, allocations: 12 kB / 334.4 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.09679, allocations: 8 kB / 334.4 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008184/0.09761, allocations: 421.9 kB / 334.8 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001882/0.09951, allocations: 1.253 MB / 336.1 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006725/0.1002, allocations: 359 kB / 336.4 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004349/0.1006, allocations: 192.7 kB / 336.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.545e-05/0.1007, allocations: 7.984 kB / 336.6 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.1007, allocations: 38.56 kB / 336.7 MB, free: 11.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.683e-06/0.1007, allocations: 0 / 336.7 MB, free: 11.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004393/0.1051, allocations: 1.953 MB / 338.6 MB, free: 9.43 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/0.1052, allocations: 84.86 kB / 338.7 MB, free: 9.328 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.1055, allocations: 238.3 kB / 339 MB, free: 9.082 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.1055, allocations: 33.7 kB / 339 MB, free: 9.043 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.737e-05/0.1056, allocations: 140.8 kB / 339.1 MB, free: 8.902 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/0.1058, allocations: 149.9 kB / 339.3 MB, free: 8.754 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-05/0.1058, allocations: 8 kB / 339.3 MB, free: 8.746 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.1059, allocations: 338.8 kB / 339.6 MB, free: 8.406 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003897/0.1063, allocations: 168.7 kB / 339.8 MB, free: 8.242 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003672/0.1067, allocations: 233.9 kB / 340 MB, free: 7.992 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.1071, allocations: 168.8 kB / 340.2 MB, free: 7.832 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1071, allocations: 0 / 340.2 MB, free: 7.832 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001004/0.1081, allocations: 0.5629 MB / 340.7 MB, free: 7.258 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.1081, allocations: 4 kB / 340.7 MB, free: 7.254 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-06/0.1081, allocations: 4 kB / 340.7 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006509/0.1088, allocations: 244.7 kB / 341 MB, free: 7.008 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002555/0.109, allocations: 55.91 kB / 341 MB, free: 6.953 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003431/0.1125, allocations: 2.663 MB / 343.7 MB, free: 4.156 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002197/0.1127, allocations: 27.98 kB / 343.7 MB, free: 4.129 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.146e-05/0.1128, allocations: 19.98 kB / 343.7 MB, free: 4.109 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.1129, allocations: 157.9 kB / 343.9 MB, free: 3.945 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.493e-05/0.113, allocations: 27.62 kB / 343.9 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.639e-05/0.1131, allocations: 42.98 kB / 344 MB, free: 3.875 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1131, allocations: 4 kB / 344 MB, free: 3.871 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.1131, allocations: 0 / 344 MB, free: 3.871 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/0.1131, allocations: 7.938 kB / 344 MB, free: 3.863 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001685/0.1148, allocations: 1.104 MB / 345.1 MB, free: 2.699 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1148, allocations: 0 / 345.1 MB, free: 2.699 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002044/0.115, allocations: 47.91 kB / 345.1 MB, free: 2.652 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005905/0.1157, allocations: 249.2 kB / 345.4 MB, free: 2.406 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.133e-05/0.1157, allocations: 11.98 kB / 345.4 MB, free: 2.395 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003166/0.1189, allocations: 2.596 MB / 348 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1189, allocations: 0 / 348 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.1202, allocations: 0.8256 MB / 348.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.1204, allocations: 144.8 kB / 348.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.198e-05/0.1205, allocations: 12 kB / 349 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.1207, allocations: 23.98 kB / 349 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.1208, allocations: 75.92 kB / 349.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.84e-05/0.1209, allocations: 12 kB / 349.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001898/0.1211, allocations: 184.2 kB / 349.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1211, allocations: 0 / 349.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005585/0.1216, allocations: 140 kB / 349.4 MB, free: 14.22 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.001833/0.1235, allocations: 1.428 MB / 350.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.1247, allocations: 0.6217 MB / 351.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1247, allocations: 4.25 kB / 351.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006563/0.1253, allocations: 445 kB / 351.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.1257, allocations: 24 kB / 351.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.129, allocations: 2.139 MB / 354 MB, free: 9.453 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.1294, allocations: 0.7877 MB / 354.8 MB, free: 8.637 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001778/0.1296, allocations: 54.95 kB / 354.9 MB, free: 8.582 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.1297, allocations: 79.39 kB / 355 MB, free: 8.504 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1297, allocations: 0 / 355 MB, free: 8.504 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5984/0.7281, allocations: 8.855 MB / 363.8 MB, free: 15.65 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002898/0.7284, allocations: 216.5 kB / 364 MB, free: 15.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.236/2.964, allocations: 0 / 364 MB, free: 15.41 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat