Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_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.001564/0.001564, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.232/2.232, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001174/0.001173, allocations: 82.72 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.542e-05/3.584e-05, allocations: 0 / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1104, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4358/0.5463, allocations: 81.86 MB / 451 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.5467, allocations: 70.84 kB / 451.1 MB, free: 11.35 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05868/0.6054, allocations: 14.43 MB / 465.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.6054, allocations: 0 / 465.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.811e-05/0.6055, allocations: 24 kB / 465.6 MB, free: 14.52 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.002226/0.6078, allocations: 0.9048 MB / 466.5 MB, free: 13.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6e-05/0.6079, allocations: 8.031 kB / 466.5 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002537/0.6081, allocations: 126.9 kB / 466.6 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002541/0.6084, allocations: 102.8 kB / 466.7 MB, free: 13.33 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/0.6097, allocations: 0.5206 MB / 467.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.288e-05/0.6098, allocations: 61.95 kB / 467.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001741/0.61, allocations: 84 kB / 467.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002152/0.6122, allocations: 0.8131 MB / 468.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.517e-05/0.6123, allocations: 11.91 kB / 468.2 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.86e-05/0.6124, allocations: 32 kB / 468.2 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-05/0.6124, allocations: 20 kB / 468.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001431/0.6139, allocations: 453.6 kB / 468.7 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006451/0.6203, allocations: 4.4 MB / 473.1 MB, free: 6.598 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009126/0.6213, allocations: 295.1 kB / 473.4 MB, free: 6.301 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003498/0.6217, allocations: 133.6 kB / 473.5 MB, free: 6.168 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002885/0.622, allocations: 170.6 kB / 473.7 MB, free: 5.965 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/0.6221, allocations: 38.94 kB / 473.7 MB, free: 5.918 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 3.867e-06/0.6221, allocations: 0 / 473.7 MB, free: 5.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=57): time 0.0047/0.6268, allocations: 1.586 MB / 475.3 MB, free: 4.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.121e-05/0.6269, allocations: 59.97 kB / 475.3 MB, free: 4.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008932/0.6278, allocations: 467.4 kB / 475.8 MB, free: 3.699 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.97e-05/0.6279, allocations: 33.7 kB / 475.8 MB, free: 3.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004413/0.6283, allocations: 0.4892 MB / 476.3 MB, free: 3.164 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002425/0.6286, allocations: 216.9 kB / 476.5 MB, free: 2.949 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.786e-05/0.6286, allocations: 16 kB / 476.6 MB, free: 2.934 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.6288, allocations: 342.8 kB / 476.9 MB, free: 2.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004371/0.6293, allocations: 146 kB / 477 MB, free: 2.445 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007142/0.63, allocations: 447.2 kB / 477.5 MB, free: 1.875 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006457/0.6307, allocations: 229.6 kB / 477.7 MB, free: 1.652 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.732e-06/0.6307, allocations: 4.219 kB / 477.7 MB, free: 1.648 MB / 346.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001751/0.6324, allocations: 0.672 MB / 478.4 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/0.6325, allocations: 11.94 kB / 478.4 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/0.6325, allocations: 12 kB / 478.4 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002448/0.6328, allocations: 48.84 kB / 478.4 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.6339, allocations: 180.3 kB / 478.6 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001886/0.6358, allocations: 1.529 MB / 480.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006194/0.6365, allocations: 32.05 kB / 480.2 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.417e-05/0.6366, allocations: 40 kB / 480.2 MB, free: 14.98 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.000211/0.6368, allocations: 152.6 kB / 480.4 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.6369, allocations: 75.16 kB / 480.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002228/0.6372, allocations: 71.08 kB / 480.5 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.6372, allocations: 4 kB / 480.5 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-05/0.6372, allocations: 7.953 kB / 480.5 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.6372, allocations: 3.984 kB / 480.5 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003124/0.6404, allocations: 1.389 MB / 481.9 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.6404, allocations: 0 / 481.9 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.6415, allocations: 124.2 kB / 482 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001397/0.6416, allocations: 24.86 kB / 482.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.909e-05/0.6417, allocations: 19.94 kB / 482.1 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001311/0.643, allocations: 1.276 MB / 483.3 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/0.643, allocations: 4 kB / 483.4 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001808/0.6449, allocations: 0.8754 MB / 484.2 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002134/0.6451, allocations: 148.2 kB / 484.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.013e-05/0.6452, allocations: 12 kB / 484.4 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003652/0.6456, allocations: 16 kB / 484.4 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.6457, allocations: 32.05 kB / 484.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.197e-05/0.6458, allocations: 23.94 kB / 484.5 MB, free: 10.35 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006823/0.6465, allocations: 351.2 kB / 484.8 MB, free: 10.01 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6465, allocations: 0 / 484.8 MB, free: 10.01 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009382/0.6474, allocations: 148 kB / 484.9 MB, free: 9.867 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.002514/0.65, allocations: 2.197 MB / 487.1 MB, free: 7.562 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.6515, allocations: 0.5574 MB / 487.7 MB, free: 6.992 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.6516, allocations: 0 / 487.7 MB, free: 6.992 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005986/0.6522, allocations: 298.4 kB / 488 MB, free: 6.688 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007917/0.653, allocations: 80.84 kB / 488.1 MB, free: 6.613 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00459/0.6576, allocations: 1.727 MB / 489.8 MB, free: 4.809 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008381/0.6585, allocations: 0.9929 MB / 490.8 MB, free: 3.789 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006788/0.6592, allocations: 331.3 kB / 491.1 MB, free: 3.465 MB / 362.7 MB Notification: Performance of SimCode: time 1.894e-06/0.6592, allocations: 0 / 491.1 MB, free: 3.465 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.94/3.599, allocations: 15.3 MB / 0.4945 GB, free: 4.129 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat