Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.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.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_WhyArrows",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.001021/0.001022, allocations: 92.25 kB / 16.95 MB, free: 6.438 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.001242/0.001242, allocations: 181.2 kB / 17.84 MB, free: 6.008 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.525/1.525, allocations: 205.4 MB / 224 MB, free: 13.07 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.000464/0.0004642, allocations: 8 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09932/0.0998, allocations: 47.58 MB / 328.4 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.002916/0.1028, allocations: 1.869 MB / 330.3 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007001/0.1035, allocations: 191.3 kB / 330.5 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002163/0.1038, allocations: 4 kB / 330.5 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.1039, allocations: 27.83 kB / 330.5 MB, free: 1.863 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002984/0.1042, allocations: 55.55 kB / 330.6 MB, free: 1.809 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002537/0.1045, allocations: 31.97 kB / 330.6 MB, free: 1.777 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003552/0.1048, allocations: 227 kB / 330.8 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002133/0.1051, allocations: 81.98 kB / 330.9 MB, free: 1.477 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.1052, allocations: 83.7 kB / 331 MB, free: 1.395 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.1054, allocations: 83.62 kB / 331.1 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.489e-05/0.1054, allocations: 12 kB / 331.1 MB, free: 1.301 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.163e-05/0.1055, allocations: 12 kB / 331.1 MB, free: 1.289 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.568e-05/0.1055, allocations: 31.84 kB / 331.1 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.291e-05/0.1056, allocations: 61.64 kB / 331.2 MB, free: 1.191 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002076/0.1058, allocations: 191.7 kB / 331.4 MB, free: 1.004 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1058, allocations: 4 kB / 331.4 MB, free: 1 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1058, allocations: 0 / 331.4 MB, free: 1 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.916e-06/0.1059, allocations: 4 kB / 331.4 MB, free: 0.9961 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0007066/0.1066, allocations: 479.2 kB / 331.9 MB, free: 492 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.1066, allocations: 8.031 kB / 331.9 MB, free: 484 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.958e-05/0.1067, allocations: 54.55 kB / 331.9 MB, free: 420 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.918e-05/0.1068, allocations: 31.7 kB / 332 MB, free: 388 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002492/0.107, allocations: 218.7 kB / 332.2 MB, free: 128 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.1071, allocations: 16.52 kB / 332.2 MB, free: 112 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.528e-05/0.1071, allocations: 24 kB / 332.2 MB, free: 88 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004413/0.1076, allocations: 228.3 kB / 332.4 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.1076, allocations: 4 kB / 332.4 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.1076, allocations: 8 kB / 332.4 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.1076, allocations: 8 kB / 332.5 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002651/0.1079, allocations: 135.8 kB / 332.6 MB, free: 15.69 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.1092, allocations: 0.8633 MB / 333.4 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.1094, allocations: 155.7 kB / 333.6 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.153e-05/0.1095, allocations: 62.56 kB / 333.7 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.1095, allocations: 3.953 kB / 333.7 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.1096, allocations: 38.55 kB / 333.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.653e-06/0.1096, allocations: 0 / 333.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003675/0.11, allocations: 169.5 kB / 333.9 MB, free: 14.29 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/0.11, allocations: 110.8 kB / 334 MB, free: 14.16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002033/0.1103, allocations: 206.6 kB / 334.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.1103, allocations: 25.7 kB / 334.2 MB, free: 13.92 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.1104, allocations: 151.8 kB / 334.4 MB, free: 13.76 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.328e-05/0.1105, allocations: 75.08 kB / 334.4 MB, free: 13.69 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.818e-06/0.1105, allocations: 4 kB / 334.4 MB, free: 13.68 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1106, allocations: 326.8 kB / 334.7 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001077/0.1107, allocations: 52.53 kB / 334.8 MB, free: 13.3 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000152/0.1109, allocations: 150.7 kB / 334.9 MB, free: 13.11 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.111, allocations: 72.62 kB / 335 MB, free: 13.04 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.111, allocations: 4 kB / 335 MB, free: 13.03 MB / 286.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003769/0.1114, allocations: 245 kB / 335.3 MB, free: 12.79 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.1115, allocations: 14.61 kB / 335.3 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.1115, allocations: 4.438 kB / 335.3 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.1115, allocations: 8 kB / 335.3 MB, free: 12.76 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.1117, allocations: 59.91 kB / 335.3 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.1117, allocations: 8 kB / 335.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.1119, allocations: 23.75 kB / 335.4 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/0.1119, allocations: 12 kB / 335.4 MB, free: 12.66 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (33): * Single equations (assignments): 33 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001325/0.112, allocations: 141.7 kB / 335.5 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.319e-05/0.1121, allocations: 23.8 kB / 335.6 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.611e-05/0.1122, allocations: 25.36 kB / 335.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.1122, allocations: 4 kB / 335.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.1122, allocations: 0 / 335.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.1122, allocations: 7.984 kB / 335.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005586/0.1128, allocations: 420.8 kB / 336 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1128, allocations: 0 / 336 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001857/0.113, allocations: 39.92 kB / 336 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.044e-06/0.113, allocations: 0 / 336 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.736e-05/0.113, allocations: 16.03 kB / 336.1 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.1131, allocations: 8 kB / 336.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1131, allocations: 0 / 336.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004079/0.1135, allocations: 373.3 kB / 336.4 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.132e-05/0.1136, allocations: 104.9 kB / 336.5 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.432e-05/0.1136, allocations: 0 / 336.5 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.1137, allocations: 8 kB / 336.5 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.092e-05/0.1138, allocations: 8.031 kB / 336.5 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.1138, allocations: 8 kB / 336.6 MB, free: 11.37 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001148/0.1139, allocations: 140.3 kB / 336.7 MB, free: 11.23 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1139, allocations: 0 / 336.7 MB, free: 11.23 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003854/0.1143, allocations: 55.94 kB / 336.7 MB, free: 11.18 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.v) * 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 (17): * Single equations (assignments): 17 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007219/0.1151, allocations: 0.9095 MB / 337.7 MB, free: 10.23 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002765/0.1153, allocations: 135.8 kB / 337.8 MB, free: 10.1 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1154, allocations: 0 / 337.8 MB, free: 10.1 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.785e-05/0.1154, allocations: 51.86 kB / 337.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005137/0.116, allocations: 29.61 kB / 337.9 MB, free: 10.02 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.1181, allocations: 1.432 MB / 339.3 MB, free: 8.48 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.1184, allocations: 0.7398 MB / 340 MB, free: 7.715 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.935e-05/0.1185, allocations: 21.95 kB / 340.1 MB, free: 7.695 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.913e-05/0.1186, allocations: 59.36 kB / 340.1 MB, free: 7.641 MB / 286.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1186, allocations: 3.938 kB / 340.1 MB, free: 7.637 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01457/0.1332, allocations: 3.34 MB / 343.5 MB, free: 4.305 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001815/0.1334, allocations: 185.5 kB / 343.6 MB, free: 4.066 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.046/2.18, allocations: 0 / 343.6 MB, free: 4.066 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat does not exist to compare? outputFormat=mat