Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001953/0.001953, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001216/0.001216, allocations: 90.28 kB / 292.1 MB, free: 6.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.417e-05/3.422e-05, allocations: 0 / 350.6 MB, free: 2.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1297, allocations: 51.49 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4479/0.5776, allocations: 83.8 MB / 485.9 MB, free: 5.684 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/0.578, allocations: 70.72 kB / 486 MB, free: 5.648 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03553/0.6136, allocations: 14.72 MB / 0.489 GB, free: 8.453 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6137, allocations: 0 / 0.489 GB, free: 8.453 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.513e-05/0.6137, allocations: 27.98 kB / 0.489 GB, free: 8.426 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001521/0.6153, allocations: 0.9036 MB / 0.4899 GB, free: 7.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.6153, allocations: 8.031 kB / 0.4899 GB, free: 7.473 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001538/0.6155, allocations: 127 kB / 0.49 GB, free: 7.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002777/0.6158, allocations: 114.8 kB / 0.4901 GB, free: 7.227 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008315/0.6166, allocations: 0.5207 MB / 0.4906 GB, free: 6.664 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.286e-05/0.6167, allocations: 58 kB / 0.4907 GB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.6168, allocations: 87.59 kB / 0.4908 GB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.6181, allocations: 0.8153 MB / 0.4916 GB, free: 5.602 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.519e-05/0.6182, allocations: 11.84 kB / 0.4916 GB, free: 5.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.816e-05/0.6182, allocations: 32 kB / 0.4916 GB, free: 5.559 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.412e-05/0.6183, allocations: 28 kB / 0.4916 GB, free: 5.531 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007987/0.6191, allocations: 443.5 kB / 0.492 GB, free: 5.094 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003893/0.623, allocations: 4.396 MB / 0.4963 GB, free: 0.5039 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005515/0.6236, allocations: 287.6 kB / 0.4966 GB, free: 220 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001983/0.6238, allocations: 133.6 kB / 0.4967 GB, free: 84 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002396/0.624, allocations: 182.6 kB / 0.4969 GB, free: 15.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.6241, allocations: 30.94 kB / 0.4969 GB, free: 15.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 3.517e-06/0.6241, allocations: 0 / 0.4969 GB, free: 15.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.002957/0.627, allocations: 1.58 MB / 0.4985 GB, free: 14.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.6271, allocations: 63.14 kB / 0.4986 GB, free: 14.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000551/0.6276, allocations: 471.3 kB / 0.499 GB, free: 13.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.6277, allocations: 29.7 kB / 0.499 GB, free: 13.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003119/0.628, allocations: 478.5 kB / 0.4995 GB, free: 13.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.6282, allocations: 209.8 kB / 0.4997 GB, free: 12.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.549e-05/0.6282, allocations: 23.94 kB / 0.4997 GB, free: 12.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.6284, allocations: 378.8 kB / 0.5001 GB, free: 12.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002442/0.6286, allocations: 150 kB / 0.5002 GB, free: 12.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004444/0.6291, allocations: 443.3 kB / 0.5006 GB, free: 11.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003479/0.6294, allocations: 228.6 kB / 0.5009 GB, free: 11.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.6295, allocations: 4 kB / 0.5009 GB, free: 11.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001055/0.6305, allocations: 0.7142 MB / 0.5016 GB, free: 10.83 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.6305, allocations: 8 kB / 0.5016 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.6306, allocations: 8.656 kB / 0.5016 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000173/0.6307, allocations: 49.66 kB / 0.5016 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005767/0.6313, allocations: 183.7 kB / 0.5018 GB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.6327, allocations: 1.514 MB / 0.5033 GB, free: 8.934 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.633, allocations: 35.98 kB / 0.5033 GB, free: 8.898 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.027e-05/0.6331, allocations: 32 kB / 0.5033 GB, free: 8.867 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 100 * 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: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001445/0.6332, allocations: 162.3 kB / 0.5035 GB, free: 8.703 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.938e-05/0.6333, allocations: 71.72 kB / 0.5036 GB, free: 8.633 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001559/0.6335, allocations: 75.08 kB / 0.5036 GB, free: 8.559 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.6335, allocations: 8 kB / 0.5036 GB, free: 8.551 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.078e-06/0.6335, allocations: 4.016 kB / 0.5036 GB, free: 8.547 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/0.6335, allocations: 7.984 kB / 0.5037 GB, free: 8.539 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001933/0.6355, allocations: 1.39 MB / 0.505 GB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.6355, allocations: 8.344 kB / 0.505 GB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000472/0.636, allocations: 122.2 kB / 0.5051 GB, free: 6.918 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-05/0.636, allocations: 20.86 kB / 0.5052 GB, free: 6.895 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.525e-05/0.6361, allocations: 20.17 kB / 0.5052 GB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008901/0.637, allocations: 1.273 MB / 0.5064 GB, free: 5.469 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.637, allocations: 7.875 kB / 0.5064 GB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.638, allocations: 0.8867 MB / 0.5073 GB, free: 4.453 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.6382, allocations: 140.2 kB / 0.5074 GB, free: 4.297 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.382e-05/0.6383, allocations: 19.98 kB / 0.5074 GB, free: 4.277 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001985/0.6385, allocations: 8 kB / 0.5074 GB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.895e-05/0.6386, allocations: 43.98 kB / 0.5075 GB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-05/0.6386, allocations: 16 kB / 0.5075 GB, free: 4.211 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004177/0.639, allocations: 359.2 kB / 0.5078 GB, free: 3.863 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.639, allocations: 0 / 0.5078 GB, free: 3.863 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006663/0.6397, allocations: 136 kB / 0.508 GB, free: 3.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001695/0.6414, allocations: 2.205 MB / 0.5101 GB, free: 1.422 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009708/0.6424, allocations: 0.5569 MB / 0.5107 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.6424, allocations: 0 / 0.5107 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003717/0.6428, allocations: 292.1 kB / 0.511 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004884/0.6433, allocations: 91.86 kB / 0.511 GB, free: 488 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002889/0.6462, allocations: 1.709 MB / 0.5127 GB, free: 14.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006502/0.6468, allocations: 0.9812 MB / 0.5137 GB, free: 13.68 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003464/0.6472, allocations: 93.91 kB / 0.5138 GB, free: 13.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004173/0.6476, allocations: 319.3 kB / 0.5141 GB, free: 13.28 MB / 394.7 MB Notification: Performance of SimCode: time 1.353e-06/0.6476, allocations: 0 / 0.5141 GB, free: 13.28 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03138/0.679, allocations: 11.49 MB / 0.5253 GB, free: 2.027 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.6793, allocations: 185.2 kB / 0.5255 GB, free: 1.805 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.391/3.071, allocations: 3.938 kB / 0.5255 GB, free: 1.801 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat