Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",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.0009514/0.0009514, allocations: 93.34 kB / 16.3 MB, free: 5.996 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.001099/0.001099, allocations: 183.8 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 223.2 MB / 241.1 MB, free: 5.402 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002584/0.0002584, allocations: 7.375 kB / 300.8 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1094, allocations: 50.42 MB / 351.2 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.04325/0.1527, allocations: 40.17 MB / 391.4 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02023/0.173, allocations: 9.831 MB / 401.2 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006466/0.1795, allocations: 199.5 kB / 401.4 MB, free: 9.293 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005714/0.1852, allocations: 1.967 MB / 403.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01612/0.2014, allocations: 5.808 MB / 409.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002866/0.2042, allocations: 0.6903 MB / 409.9 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005156/0.2094, allocations: 2.609 MB / 412.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007187/0.2166, allocations: 4.484 MB / 417 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00223/0.2189, allocations: 1.152 MB / 418.1 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002546/0.2215, allocations: 1.569 MB / 419.7 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007063/0.2222, allocations: 160 kB / 419.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00239/0.2246, allocations: 0.9597 MB / 420.8 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0021/0.2267, allocations: 1.738 MB / 422.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001424/0.2282, allocations: 0.8933 MB / 423.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2325/0.4607, allocations: 5.713 MB / 429.2 MB, free: 8.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.4608, allocations: 3.172 kB / 429.2 MB, free: 8.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4608, allocations: 0 / 429.2 MB, free: 8.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002794/0.4611, allocations: 0.8125 kB / 429.2 MB, free: 8.387 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01143/0.4725, allocations: 4.403 MB / 433.6 MB, free: 6.387 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.4726, allocations: 11.39 kB / 433.6 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002636/0.4752, allocations: 0.7997 MB / 434.4 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01004/0.4853, allocations: 2.525 MB / 436.9 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006466/0.4918, allocations: 2.613 MB / 439.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003244/0.4921, allocations: 272.1 kB / 439.8 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001673/0.4938, allocations: 434.6 kB / 440.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02388/0.5177, allocations: 12.35 MB / 452.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001399/0.5179, allocations: 44.94 kB / 452.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005648/0.5184, allocations: 173.7 kB / 452.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002899/0.5213, allocations: 2.165 MB / 454.9 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02189/0.5432, allocations: 10.34 MB / 465.3 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0614/0.6047, allocations: 44.92 MB / 0.4982 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02023/0.625, allocations: 7.171 MB / 0.5052 GB, free: 4.934 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0177/0.6427, allocations: 9.295 MB / 0.5143 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.147e-05/0.6429, allocations: 60.59 kB / 0.5144 GB, free: 13.39 MB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 1.316e-05/0.6429, allocations: 0 / 0.5144 GB, free: 13.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=205): time 0.06364/0.7065, allocations: 22.4 MB / 0.5363 GB, free: 9.527 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001328/0.7079, allocations: 1.608 MB / 0.5378 GB, free: 7.758 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007538/0.7155, allocations: 4.408 MB / 0.5421 GB, free: 3.336 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000538/0.7161, allocations: 57.7 kB / 0.5422 GB, free: 3.273 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002615/0.7187, allocations: 3.404 MB / 0.5455 GB, free: 15.89 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001185/0.7199, allocations: 0.804 MB / 0.5463 GB, free: 15.09 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006818/0.7206, allocations: 132 kB / 0.5464 GB, free: 14.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000535/0.7211, allocations: 0.5873 MB / 0.547 GB, free: 14.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004375/0.7255, allocations: 2.352 MB / 0.5493 GB, free: 12.01 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007081/0.7326, allocations: 6.441 MB / 0.5556 GB, free: 3.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00628/0.7389, allocations: 3.766 MB / 0.5593 GB, free: 15.95 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001337/0.7391, allocations: 42.91 kB / 0.5593 GB, free: 15.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02506/0.7642, allocations: 10.21 MB / 0.5693 GB, free: 6.574 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001691/0.7644, allocations: 68 kB / 0.5693 GB, free: 6.508 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0121/0.7765, allocations: 4.007 MB / 0.5732 GB, free: 2.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01017/0.7867, allocations: 2.185 MB / 0.5754 GB, free: 308 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005761/0.7925, allocations: 1.6 MB / 0.5769 GB, free: 14.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009346/0.8019, allocations: 6.365 MB / 0.5832 GB, free: 8.285 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005942/0.8078, allocations: 445.2 kB / 0.5836 GB, free: 7.852 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001424/0.8093, allocations: 423.9 kB / 0.584 GB, free: 7.441 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005636/0.8149, allocations: 2.218 MB / 0.5862 GB, free: 5.352 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001068/0.816, allocations: 375.1 kB / 0.5865 GB, free: 4.98 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007808/0.8239, allocations: 3.507 MB / 0.5899 GB, free: 1.457 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2277/1.052, allocations: 2.938 MB / 0.5928 GB, free: 176.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-05/1.052, allocations: 6.844 kB / 0.5928 GB, free: 176.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.676e-05/1.052, allocations: 7.875 kB / 0.5928 GB, free: 176.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02232/1.074, allocations: 10.73 MB / 0.6033 GB, free: 175.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-05/1.074, allocations: 11.72 kB / 0.6033 GB, free: 175.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001528/1.076, allocations: 389.3 kB / 0.6037 GB, free: 175.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002596/1.078, allocations: 0.9816 MB / 0.6046 GB, free: 175 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002355/1.079, allocations: 63.06 kB / 0.6047 GB, free: 175 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004616/1.083, allocations: 4.681 MB / 0.6093 GB, free: 171.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008674/1.084, allocations: 1.482 MB / 0.6107 GB, free: 170.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008853/1.093, allocations: 7.841 MB / 0.6184 GB, free: 165.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/1.094, allocations: 456.7 kB / 0.6188 GB, free: 165.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005331/1.095, allocations: 60.42 kB / 0.6189 GB, free: 165.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001738/1.097, allocations: 173.1 kB / 0.619 GB, free: 165.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002807/1.097, allocations: 176.6 kB / 0.6192 GB, free: 165.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001445/1.097, allocations: 80.14 kB / 0.6193 GB, free: 165.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003588/1.101, allocations: 2.751 MB / 0.622 GB, free: 164.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.7e-07/1.101, allocations: 0 / 0.622 GB, free: 164.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005071/1.106, allocations: 1.19 MB / 0.6231 GB, free: 164 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008501/1.114, allocations: 11.7 MB / 0.6346 GB, free: 152.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009002/1.123, allocations: 6.103 MB / 0.6405 GB, free: 146.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/1.123, allocations: 4 kB / 0.6405 GB, free: 146.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003651/1.127, allocations: 2.284 MB / 0.6427 GB, free: 144.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002662/1.13, allocations: 465.8 kB / 0.6432 GB, free: 143.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.273/1.403, allocations: 140.2 MB / 0.7801 GB, free: 175.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006008/1.409, allocations: 3.559 MB / 0.7836 GB, free: 174.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006611/1.415, allocations: 2.044 MB / 0.7856 GB, free: 174.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003203/1.419, allocations: 2.099 MB / 0.7876 GB, free: 174.4 MB / 478.1 MB Notification: Performance of SimCode: time 1.012e-06/1.419, allocations: 0 / 0.7876 GB, free: 174.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1267/1.545, allocations: 85.61 MB / 0.8712 GB, free: 101.4 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001561/1.545, allocations: 231.6 kB / 0.8715 GB, free: 101.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.207/5.753, allocations: 4 kB / 0.8715 GB, free: 101.2 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat