Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001219/0.001219, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.49/1.49, allocations: 205.2 MB / 219.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000935/0.0009349, allocations: 90.64 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.918e-05/2.928e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08768/0.08773, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2985/0.3862, allocations: 81.85 MB / 452 MB, free: 11.47 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001802/0.3865, allocations: 75.45 kB / 452 MB, free: 11.43 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03317/0.4196, allocations: 14.43 MB / 466.5 MB, free: 14.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4197, allocations: 0 / 466.5 MB, free: 14.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.021e-05/0.4198, allocations: 24 kB / 466.5 MB, free: 14.16 MB / 346.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.001247/0.421, allocations: 0.897 MB / 467.4 MB, free: 13.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.4211, allocations: 8.031 kB / 467.4 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001453/0.4212, allocations: 126.9 kB / 467.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.4214, allocations: 98.78 kB / 467.6 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007794/0.4221, allocations: 0.5206 MB / 468.1 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.795e-05/0.4222, allocations: 65.94 kB / 468.2 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.4223, allocations: 80 kB / 468.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.4236, allocations: 0.817 MB / 469.1 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.553e-05/0.4236, allocations: 19.83 kB / 469.1 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.119e-05/0.4237, allocations: 32 kB / 469.2 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.014e-05/0.4237, allocations: 20 kB / 469.2 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007991/0.4245, allocations: 445.6 kB / 469.6 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003647/0.4282, allocations: 4.404 MB / 474 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.4287, allocations: 291.1 kB / 474.3 MB, free: 5.945 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001995/0.4289, allocations: 137.6 kB / 474.4 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001869/0.4291, allocations: 170.6 kB / 474.6 MB, free: 5.605 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.4292, allocations: 34.94 kB / 474.6 MB, free: 5.562 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 3.647e-06/0.4292, allocations: 0 / 474.6 MB, free: 5.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=57): time 0.002764/0.4319, allocations: 1.59 MB / 476.2 MB, free: 3.871 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/0.432, allocations: 55.97 kB / 476.3 MB, free: 3.805 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005161/0.4325, allocations: 471.4 kB / 476.7 MB, free: 3.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.4326, allocations: 37.7 kB / 476.8 MB, free: 3.297 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003167/0.4329, allocations: 474.5 kB / 477.2 MB, free: 2.824 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.433, allocations: 212.9 kB / 477.4 MB, free: 2.613 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.654e-05/0.4331, allocations: 16 kB / 477.5 MB, free: 2.598 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.4333, allocations: 382.8 kB / 477.8 MB, free: 2.215 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002472/0.4335, allocations: 149.9 kB / 478 MB, free: 2.066 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000441/0.434, allocations: 439.2 kB / 478.4 MB, free: 1.504 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003448/0.4343, allocations: 233.9 kB / 478.6 MB, free: 1.277 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.4343, allocations: 4 kB / 478.6 MB, free: 1.273 MB / 346.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001047/0.4354, allocations: 0.7146 MB / 479.4 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.4354, allocations: 12 kB / 479.4 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.4354, allocations: 11.94 kB / 479.4 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001627/0.4356, allocations: 48.84 kB / 479.4 MB, free: 484 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000557/0.4362, allocations: 183.7 kB / 479.6 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/0.4375, allocations: 1.514 MB / 481.1 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002778/0.4377, allocations: 24 kB / 481.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.977e-05/0.4378, allocations: 40 kB / 481.2 MB, free: 14.59 MB / 362.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.0001408/0.438, allocations: 160.7 kB / 481.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.764e-05/0.4381, allocations: 75.06 kB / 481.4 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.4382, allocations: 71.08 kB / 481.5 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.4382, allocations: 8 kB / 481.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/0.4382, allocations: 3.953 kB / 481.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.443e-06/0.4382, allocations: 3.984 kB / 481.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/0.4401, allocations: 1.396 MB / 482.9 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.4401, allocations: 4 kB / 482.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004865/0.4406, allocations: 119.8 kB / 483 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.512e-05/0.4407, allocations: 21.2 kB / 483 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.439e-05/0.4408, allocations: 23.95 kB / 483.1 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009468/0.4417, allocations: 1.264 MB / 484.3 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/0.4418, allocations: 15.98 kB / 484.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.4428, allocations: 0.8726 MB / 485.2 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.443, allocations: 140.2 kB / 485.3 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.913e-05/0.443, allocations: 12 kB / 485.4 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.4432, allocations: 20 kB / 485.4 MB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.537e-05/0.4433, allocations: 39.98 kB / 485.4 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.4434, allocations: 16 kB / 485.4 MB, free: 9.941 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004106/0.4438, allocations: 355.2 kB / 485.8 MB, free: 9.598 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4438, allocations: 0 / 485.8 MB, free: 9.598 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006642/0.4444, allocations: 140 kB / 485.9 MB, free: 9.461 MB / 362.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.001551/0.446, allocations: 2.2 MB / 488.1 MB, free: 7.156 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000914/0.4469, allocations: 0.5612 MB / 488.7 MB, free: 6.582 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4469, allocations: 128 / 488.7 MB, free: 6.582 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003533/0.4473, allocations: 298.4 kB / 489 MB, free: 6.277 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004664/0.4478, allocations: 88.02 kB / 489.1 MB, free: 6.195 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002727/0.4505, allocations: 1.691 MB / 490.7 MB, free: 4.434 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005509/0.4511, allocations: 0.9929 MB / 491.7 MB, free: 3.414 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000285/0.4514, allocations: 89.91 kB / 491.8 MB, free: 3.324 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003648/0.4518, allocations: 323.3 kB / 492.1 MB, free: 3.008 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.4518, allocations: 8 kB / 492.2 MB, free: 3 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02591/0.4777, allocations: 11.5 MB / 0.4918 GB, free: 7.488 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002555/0.478, allocations: 181.2 kB / 0.492 GB, free: 7.266 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.071/2.549, allocations: 3.938 kB / 0.492 GB, free: 7.262 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat