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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.00103/0.00103, allocations: 94.97 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001065/0.001065, allocations: 205.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002295/0.0002296, allocations: 4 kB / 306.7 MB, free: 1.504 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1115, allocations: 51.49 MB / 358.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004995/0.1165, allocations: 3.801 MB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002415/0.119, allocations: 1.341 MB / 363.3 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004073/0.1194, allocations: 19.88 kB / 363.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.1196, allocations: 83.19 kB / 363.4 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000488/0.1201, allocations: 207.3 kB / 363.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007018/0.1208, allocations: 251.6 kB / 363.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008209/0.1216, allocations: 0.6281 MB / 364.5 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004514/0.1221, allocations: 300.3 kB / 364.8 MB, free: 7.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000337/0.1224, allocations: 242.8 kB / 365 MB, free: 7.117 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002916/0.1227, allocations: 274.3 kB / 365.3 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.512e-05/0.1228, allocations: 28 kB / 365.3 MB, free: 6.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002046/0.123, allocations: 67.86 kB / 365.4 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.1232, allocations: 119.3 kB / 365.5 MB, free: 6.637 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.1233, allocations: 181.2 kB / 365.7 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006832/0.124, allocations: 0.7482 MB / 366.4 MB, free: 5.703 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.124, allocations: 4 kB / 366.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.171e-05/0.124, allocations: 0 / 366.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.124, allocations: 0 / 366.5 MB, free: 5.699 MB / 302.1 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.001396/0.1254, allocations: 0.9783 MB / 367.4 MB, free: 4.672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.1255, allocations: 16.02 kB / 367.4 MB, free: 4.656 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001327/0.1256, allocations: 127 kB / 367.6 MB, free: 4.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002518/0.1259, allocations: 118.7 kB / 367.7 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000813/0.1267, allocations: 0.5686 MB / 368.3 MB, free: 3.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.491e-05/0.1268, allocations: 65.95 kB / 368.3 MB, free: 3.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.1269, allocations: 83.91 kB / 368.4 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.1282, allocations: 0.8365 MB / 369.2 MB, free: 2.703 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.491e-05/0.1282, allocations: 11.84 kB / 369.2 MB, free: 2.691 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.192e-05/0.1283, allocations: 36 kB / 369.3 MB, free: 2.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.184e-05/0.1283, allocations: 20 kB / 369.3 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008408/0.1292, allocations: 471.2 kB / 369.8 MB, free: 2.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2212/0.3504, allocations: 4.397 MB / 374.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007704/0.3512, allocations: 303.8 kB / 374.5 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001889/0.3514, allocations: 169.4 kB / 374.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.198e-05/0.3514, allocations: 38.22 kB / 374.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.736e-06/0.3514, allocations: 0 / 374.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003635/0.3551, allocations: 1.743 MB / 376.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.3551, allocations: 59.02 kB / 376.5 MB, free: 15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007562/0.3559, allocations: 0.532 MB / 377 MB, free: 14.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.3559, allocations: 34.05 kB / 377 MB, free: 14.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003041/0.3562, allocations: 476.7 kB / 377.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.3564, allocations: 214.8 kB / 377.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.357e-05/0.3564, allocations: 15.41 kB / 377.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.3566, allocations: 382.8 kB / 378.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.3568, allocations: 158.8 kB / 378.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004091/0.3573, allocations: 456.1 kB / 378.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.3576, allocations: 237.1 kB / 378.9 MB, free: 13.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.3576, allocations: 2.75 kB / 378.9 MB, free: 13.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001072/0.3587, allocations: 0.7353 MB / 379.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.3587, allocations: 8.344 kB / 379.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.3588, allocations: 10.53 kB / 379.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001746/0.3589, allocations: 52.72 kB / 379.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005664/0.3595, allocations: 179.5 kB / 379.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001052/0.3606, allocations: 1.518 MB / 381.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003122/0.3609, allocations: 31.58 kB / 381.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.676e-05/0.361, allocations: 45.09 kB / 381.5 MB, free: 11.73 MB / 302.1 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 () * Number of clocked 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.0002972/0.3613, allocations: 233 kB / 381.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.301e-05/0.3614, allocations: 68.64 kB / 381.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001212/0.3615, allocations: 77.41 kB / 381.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.3615, allocations: 10.52 kB / 381.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/0.3615, allocations: 1.062 kB / 381.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.3616, allocations: 3.328 kB / 381.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.3637, allocations: 1.418 MB / 383.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.3637, allocations: 2.25 kB / 383.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00052/0.3642, allocations: 121.8 kB / 383.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.67e-05/0.3643, allocations: 28.31 kB / 383.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/0.3643, allocations: 19 kB / 383.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006216/0.365, allocations: 1.28 MB / 384.7 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.365, allocations: 7.438 kB / 384.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.3662, allocations: 0.9099 MB / 385.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/0.3663, allocations: 138.7 kB / 385.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.863e-05/0.3664, allocations: 15.55 kB / 385.8 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.3666, allocations: 17.39 kB / 385.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.3667, allocations: 47.7 kB / 385.9 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.3668, allocations: 18.08 kB / 385.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000509/0.3673, allocations: 358.6 kB / 386.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3673, allocations: 0 / 386.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007739/0.3681, allocations: 138.4 kB / 386.4 MB, free: 8.199 MB / 302.1 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 () * Number of clocked 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.001511/0.3696, allocations: 2.218 MB / 388.6 MB, free: 6.258 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.3707, allocations: 0.5823 MB / 389.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3707, allocations: 0 / 389.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004031/0.3711, allocations: 309.4 kB / 389.5 MB, free: 5.812 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005076/0.3716, allocations: 89.55 kB / 389.6 MB, free: 5.766 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0097/0.3813, allocations: 11.02 MB / 400.6 MB, free: 12.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008019/0.3822, allocations: 0.9839 MB / 401.6 MB, free: 11.77 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000379/0.3826, allocations: 87.11 kB / 401.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004678/0.3831, allocations: 326.7 kB / 402 MB, free: 11.51 MB / 318.1 MB Notification: Performance of SimCode: time 1.403e-06/0.3831, allocations: 0 / 402 MB, free: 11.51 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1022/0.4853, allocations: 11.56 MB / 413.5 MB, free: 4.895 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/0.4856, allocations: 209.2 kB / 413.7 MB, free: 4.656 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.876/2.362, allocations: 0 / 413.7 MB, free: 4.656 MB / 318.1 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