Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001446/0.001446, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.2 MB / 245 MB, free: 7.668 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008607/0.0008607, allocations: 105.4 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3952/0.3952, allocations: 45.24 MB / 394.7 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000322/0.0003219, allocations: 8 kB / 468.5 MB, free: 7.621 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4299/0.4303, allocations: 63.24 MB / 0.5193 GB, free: 43.94 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1582/0.5886, allocations: 111.3 MB / 0.628 GB, free: 10.25 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.5889, allocations: 91.84 kB / 0.628 GB, free: 10.17 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5783/1.167, allocations: 99.09 MB / 0.7248 GB, free: 98.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.649e-06/1.167, allocations: 3.5 kB / 0.7248 GB, free: 98.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000303/1.168, allocations: 97.53 kB / 0.7249 GB, free: 98.29 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.02519/1.193, allocations: 4.869 MB / 0.7297 GB, free: 96.28 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/1.193, allocations: 9.266 kB / 0.7297 GB, free: 96.28 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005039/1.198, allocations: 0.9391 MB / 0.7306 GB, free: 96.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01656/1.215, allocations: 3.596 MB / 0.7341 GB, free: 95.86 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01499/1.23, allocations: 4.238 MB / 0.7382 GB, free: 95.25 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000643/1.23, allocations: 371.2 kB / 0.7386 GB, free: 95.23 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003666/1.234, allocations: 491 kB / 0.7391 GB, free: 95.23 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03267/1.267, allocations: 12.08 MB / 0.7509 GB, free: 92.82 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002585/1.267, allocations: 43.02 kB / 0.7509 GB, free: 92.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001927/1.269, allocations: 220.1 kB / 0.7511 GB, free: 92.68 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001654/1.271, allocations: 1.3 MB / 0.7524 GB, free: 92.44 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02389/1.294, allocations: 11.36 MB / 0.7635 GB, free: 88.92 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05845/1.353, allocations: 41.45 MB / 0.804 GB, free: 63.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008766/1.362, allocations: 4.871 MB / 0.8087 GB, free: 60.39 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01159/1.373, allocations: 6.839 MB / 0.8154 GB, free: 54.25 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.484e-05/1.374, allocations: 56.56 kB / 0.8154 GB, free: 54.18 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=229): time 7.434e-06/1.374, allocations: 0 / 0.8154 GB, free: 54.18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=250): time 0.04267/1.416, allocations: 18.82 MB / 0.8338 GB, free: 36.51 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.832e-05/1.416, allocations: 77.34 kB / 0.8339 GB, free: 36.42 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004237/1.421, allocations: 2.798 MB / 0.8366 GB, free: 33.61 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004396/1.421, allocations: 57.61 kB / 0.8367 GB, free: 33.55 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001723/1.423, allocations: 3.234 MB / 0.8398 GB, free: 30.31 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001034/1.424, allocations: 0.928 MB / 0.8407 GB, free: 29.39 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002368/1.424, allocations: 120 kB / 0.8409 GB, free: 29.27 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002935/1.424, allocations: 0.5702 MB / 0.8414 GB, free: 28.69 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00296/1.427, allocations: 2.417 MB / 0.8438 GB, free: 26.27 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004452/1.432, allocations: 5.726 MB / 0.8494 GB, free: 18.91 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00445/1.436, allocations: 3.716 MB / 0.853 GB, free: 15.18 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.504e-05/1.436, allocations: 32 kB / 0.853 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of matching and sorting (n=805) (initialization): time 0.01902/1.455, allocations: 9.891 MB / 0.8627 GB, free: 5.258 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.558e-05/1.455, allocations: 59.95 kB / 0.8628 GB, free: 5.199 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.791e-05/1.456, allocations: 116.9 kB / 0.8629 GB, free: 5.086 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00819/1.464, allocations: 2.314 MB / 0.8651 GB, free: 2.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004798/1.469, allocations: 1.337 MB / 0.8664 GB, free: 1.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01808/1.487, allocations: 11.07 MB / 0.8772 GB, free: 6.223 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005173/1.492, allocations: 327.1 kB / 0.8775 GB, free: 5.906 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001171/1.493, allocations: 352 kB / 0.8779 GB, free: 5.562 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 528 * Number of states: 0 () * Number of discrete variables: 32 (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.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 (720): * Single equations (assignments): 712 * 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.00555/1.499, allocations: 2.39 MB / 0.8802 GB, free: 3.16 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006676/1.499, allocations: 300.1 kB / 0.8805 GB, free: 2.863 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007758/1.507, allocations: 4.561 MB / 0.885 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.197e-05/1.507, allocations: 47.98 kB / 0.885 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/1.507, allocations: 0 / 0.885 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.138e-05/1.507, allocations: 11.95 kB / 0.885 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02042/1.528, allocations: 10.79 MB / 0.8955 GB, free: 3.316 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/1.528, allocations: 4 kB / 0.8956 GB, free: 3.312 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001791/1.53, allocations: 403.4 kB / 0.8959 GB, free: 2.918 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00209/1.532, allocations: 0.7011 MB / 0.8966 GB, free: 2.207 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002442/1.532, allocations: 59.92 kB / 0.8967 GB, free: 2.148 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3538/1.886, allocations: 2.426 MB / 0.899 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.529e-05/1.886, allocations: 17.28 kB / 0.8991 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01212/1.898, allocations: 7.441 MB / 0.9063 GB, free: 116.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001181/1.899, allocations: 347.5 kB / 0.9067 GB, free: 116.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000451/1.9, allocations: 47 kB / 0.9067 GB, free: 116.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/1.901, allocations: 137.9 kB / 0.9068 GB, free: 116.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002798/1.901, allocations: 136.7 kB / 0.907 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001665/1.901, allocations: 75 kB / 0.907 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002874/1.904, allocations: 1.889 MB / 0.9089 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.61e-07/1.904, allocations: 0 / 0.9089 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0053/1.91, allocations: 1.128 MB / 0.91 GB, free: 116.5 MB / 0.5261 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 (202): * Single equations (assignments): 193 * 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.0105/1.92, allocations: 9.244 MB / 0.919 GB, free: 114 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:80:3-82:159:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:74:3-76:159: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 trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:77:3-79:159:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01244/1.933, allocations: 6.048 MB / 0.9249 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.6e-05/1.933, allocations: 1.156 kB / 0.9249 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004635/1.937, allocations: 2.5 MB / 0.9274 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/1.94, allocations: 426.7 kB / 0.9278 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08678/2.027, allocations: 114.9 MB / 1.04 GB, free: 29.72 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004603/2.031, allocations: 3.821 MB / 1.044 GB, free: 28.33 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004752/2.036, allocations: 2.037 MB / 1.046 GB, free: 28.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002883/2.039, allocations: 2.106 MB / 1.048 GB, free: 26.46 MB / 0.5417 GB Notification: Performance of SimCode: time 1.974e-06/2.039, allocations: 0 / 1.048 GB, free: 26.46 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4138/2.453, allocations: 80.36 MB / 1.126 GB, free: 132.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002479/2.453, allocations: 218 kB / 1.126 GB, free: 132 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.316/6.769, allocations: 0 / 1.126 GB, free: 132 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat