Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",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.001541/0.001546, allocations: 189.2 kB / 16.4 MB, free: 5.625 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.144/2.144, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001189/0.001189, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2952/0.2952, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000446/0.0004461, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1238, allocations: 58.86 MB / 490.3 MB, free: 9.238 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.05788/0.1818, allocations: 36.33 MB / 0.5143 GB, free: 4.805 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3805/0.5624, allocations: 9.028 MB / 0.5231 GB, free: 9.926 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00751/0.5699, allocations: 173 kB / 0.5233 GB, free: 9.926 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006914/0.5769, allocations: 1.838 MB / 0.5251 GB, free: 9.922 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02119/0.5982, allocations: 5.371 MB / 0.5303 GB, free: 9.836 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003514/0.6017, allocations: 492 kB / 0.5308 GB, free: 9.832 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006491/0.6083, allocations: 2.37 MB / 0.5331 GB, free: 9.824 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009406/0.6177, allocations: 4.32 MB / 0.5373 GB, free: 8.777 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002846/0.6206, allocations: 1.063 MB / 0.5384 GB, free: 8.582 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003524/0.6242, allocations: 1.442 MB / 0.5398 GB, free: 8.266 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001453/0.6257, allocations: 165.8 kB / 0.5399 GB, free: 8.266 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003854/0.6296, allocations: 0.893 MB / 0.5408 GB, free: 8.07 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003078/0.6327, allocations: 1.716 MB / 0.5425 GB, free: 7.602 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001889/0.6347, allocations: 0.9534 MB / 0.5434 GB, free: 7.371 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01078/0.6455, allocations: 6.356 MB / 0.5496 GB, free: 3.934 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.6456, allocations: 0 / 0.5496 GB, free: 3.934 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.6456, allocations: 1.641 kB / 0.5496 GB, free: 3.934 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003291/0.6459, allocations: 0 / 0.5496 GB, free: 3.934 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: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.01614/0.6621, allocations: 4.59 MB / 0.5541 GB, free: 1.164 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.6621, allocations: 9.688 kB / 0.5541 GB, free: 1.164 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003241/0.6654, allocations: 0.8916 MB / 0.555 GB, free: 0.9023 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02468/0.6901, allocations: 3.917 MB / 0.5588 GB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008863/0.699, allocations: 2.545 MB / 0.5613 GB, free: 12.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004147/0.6995, allocations: 276.5 kB / 0.5616 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002436/0.702, allocations: 362 kB / 0.5619 GB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03745/0.7395, allocations: 12.77 MB / 0.5744 GB, free: 3.148 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002234/0.7398, allocations: 35.09 kB / 0.5744 GB, free: 3.117 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001592/0.7414, allocations: 165 kB / 0.5746 GB, free: 3.074 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008179/0.7496, allocations: 2.766 MB / 0.5773 GB, free: 424 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03907/0.7887, allocations: 11.7 MB / 0.5887 GB, free: 4.703 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09965/0.8884, allocations: 40.65 MB / 0.6284 GB, free: 11.43 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01903/0.9075, allocations: 5.015 MB / 0.6333 GB, free: 6.191 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01939/0.9269, allocations: 6.917 MB / 0.64 GB, free: 14.96 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.835e-05/0.927, allocations: 52.56 kB / 0.6401 GB, free: 14.89 MB / 458.7 MB Notification: Performance of pre-optimization done (n=238): time 7.284e-06/0.9271, allocations: 5.531 kB / 0.6401 GB, free: 14.89 MB / 458.7 MB Notification: Performance of matching and sorting (n=259): time 0.09739/1.024, allocations: 19.94 MB / 0.6596 GB, free: 10.73 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.854e-05/1.025, allocations: 75.38 kB / 0.6596 GB, free: 10.65 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008402/1.033, allocations: 3.314 MB / 0.6629 GB, free: 7.328 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006495/1.034, allocations: 61.7 kB / 0.6629 GB, free: 7.262 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003595/1.037, allocations: 3.295 MB / 0.6662 GB, free: 3.98 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001888/1.039, allocations: 0.9701 MB / 0.6671 GB, free: 3.02 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008056/1.04, allocations: 120 kB / 0.6672 GB, free: 2.902 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006518/1.041, allocations: 0.5832 MB / 0.6678 GB, free: 2.309 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007318/1.048, allocations: 2.478 MB / 0.6702 GB, free: 15.83 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01102/1.059, allocations: 5.867 MB / 0.6759 GB, free: 8.285 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/1.069, allocations: 3.802 MB / 0.6797 GB, free: 4.48 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001282/1.07, allocations: 41.58 kB / 0.6797 GB, free: 4.441 MB / 490.7 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.03752/1.107, allocations: 10.08 MB / 0.6895 GB, free: 10.36 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/1.107, allocations: 60.14 kB / 0.6896 GB, free: 10.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001981/1.108, allocations: 124 kB / 0.6897 GB, free: 10.18 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01732/1.125, allocations: 2.381 MB / 0.692 GB, free: 7.797 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008792/1.134, allocations: 1.369 MB / 0.6934 GB, free: 6.426 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03388/1.168, allocations: 11.16 MB / 0.7043 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006665/1.174, allocations: 327.8 kB / 0.7046 GB, free: 10.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001516/1.176, allocations: 358.9 kB / 0.7049 GB, free: 10.45 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (743): * Single equations (assignments): 735 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.007518/1.184, allocations: 2.449 MB / 0.7073 GB, free: 7.984 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007988/1.184, allocations: 308 kB / 0.7076 GB, free: 7.68 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01521/1.2, allocations: 4.696 MB / 0.7122 GB, free: 2.926 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000129/1.2, allocations: 47.98 kB / 0.7122 GB, free: 2.879 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/1.2, allocations: 4 kB / 0.7122 GB, free: 2.875 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-05/1.2, allocations: 7.969 kB / 0.7122 GB, free: 2.867 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.37/1.57, allocations: 11.18 MB / 0.7232 GB, free: 176.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.984e-05/1.57, allocations: 5.5 kB / 0.7232 GB, free: 176.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004127/1.574, allocations: 419.3 kB / 0.7236 GB, free: 176.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003981/1.578, allocations: 0.7018 MB / 0.7243 GB, free: 176.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000656/1.579, allocations: 54.98 kB / 0.7243 GB, free: 176.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004437/1.583, allocations: 2.446 MB / 0.7267 GB, free: 174.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/1.583, allocations: 5.906 kB / 0.7267 GB, free: 174.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01978/1.603, allocations: 7.623 MB / 0.7341 GB, free: 171.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/1.604, allocations: 366.9 kB / 0.7345 GB, free: 171.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001149/1.605, allocations: 53.25 kB / 0.7345 GB, free: 171.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002879/1.608, allocations: 135.4 kB / 0.7347 GB, free: 171.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007481/1.609, allocations: 151.1 kB / 0.7348 GB, free: 171.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002842/1.609, allocations: 72.66 kB / 0.7349 GB, free: 171.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004645/1.614, allocations: 2.025 MB / 0.7369 GB, free: 170.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.11e-07/1.614, allocations: 3.5 kB / 0.7369 GB, free: 170.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00767/1.622, allocations: 1.163 MB / 0.738 GB, free: 170.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * 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 (212): * Single equations (assignments): 203 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * 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.02484/1.647, allocations: 9.412 MB / 0.7472 GB, free: 165.8 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1919:5-1921:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01505/1.662, allocations: 6.195 MB / 0.7532 GB, free: 163.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/1.662, allocations: 7.938 kB / 0.7533 GB, free: 163.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007138/1.669, allocations: 2.551 MB / 0.7557 GB, free: 162 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003358/1.672, allocations: 429.6 kB / 0.7562 GB, free: 161.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1034/1.776, allocations: 118.3 MB / 0.8717 GB, free: 41.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007721/1.784, allocations: 3.902 MB / 0.8755 GB, free: 37.37 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005142/1.789, allocations: 2.21 MB / 0.8777 GB, free: 35.16 MB / 0.5105 GB Notification: Performance of SimCode: time 9.22e-07/1.789, allocations: 0 / 0.8777 GB, free: 35.16 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.883/6.672, allocations: 143.2 MB / 1.018 GB, free: 87.33 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat