Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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 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 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 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(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",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.0008244/0.0008245, allocations: 96.23 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009865/0.0009866, allocations: 174 kB / 16.58 MB, free: 6.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 205.4 MB / 222.8 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3913/0.3913, allocations: 43.54 MB / 314.6 MB, free: 9.012 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005703/0.0005704, allocations: 12 kB / 384 MB, free: 8.148 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1323, allocations: 58.85 MB / 442.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.3019/0.4343, allocations: 38.37 MB / 481.2 MB, free: 27.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01862/0.4529, allocations: 8.692 MB / 489.9 MB, free: 22 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008001/0.461, allocations: 175 kB / 490.1 MB, free: 21.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004982/0.466, allocations: 1.913 MB / 492 MB, free: 21.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0137/0.4797, allocations: 5.646 MB / 497.7 MB, free: 18.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002402/0.4821, allocations: 496.4 kB / 498.1 MB, free: 18.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007204/0.4893, allocations: 4.749 MB / 0.4911 GB, free: 17.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00704/0.4964, allocations: 4.314 MB / 0.4953 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003514/0.4999, allocations: 1.269 MB / 0.4966 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004162/0.5041, allocations: 2.022 MB / 0.4985 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008723/0.505, allocations: 165.7 kB / 0.4987 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002808/0.5078, allocations: 0.9265 MB / 0.4996 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002181/0.51, allocations: 1.845 MB / 0.5014 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.5112, allocations: 0.9465 MB / 0.5023 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007292/0.5185, allocations: 6.339 MB / 0.5085 GB, free: 9.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.5186, allocations: 0 / 0.5085 GB, free: 9.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.5186, allocations: 0.9375 kB / 0.5085 GB, free: 9.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002399/0.5188, allocations: 0 / 0.5085 GB, free: 9.059 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1888 * Number of variables: 1888 Notification: Performance of Generate backend data structure: time 0.01126/0.5301, allocations: 4.518 MB / 0.5129 GB, free: 5.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.5302, allocations: 12.59 kB / 0.5129 GB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001687/0.5318, allocations: 0.8795 MB / 0.5138 GB, free: 5.328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009853/0.5417, allocations: 3.296 MB / 0.517 GB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005735/0.5475, allocations: 2.75 MB / 0.5197 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.5476, allocations: 270.8 kB / 0.52 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005564/0.5482, allocations: 367.7 kB / 0.5203 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02014/0.5683, allocations: 12.64 MB / 0.5327 GB, free: 3.762 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001439/0.5685, allocations: 27.72 kB / 0.5327 GB, free: 3.734 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004455/0.569, allocations: 163.8 kB / 0.5328 GB, free: 3.574 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004174/0.5731, allocations: 2.762 MB / 0.5355 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02218/0.5953, allocations: 11.56 MB / 0.5468 GB, free: 5.238 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0652/0.6606, allocations: 40.46 MB / 0.5863 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/0.6712, allocations: 5.078 MB / 0.5913 GB, free: 6.57 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003654/0.6749, allocations: 2.404 MB / 0.5936 GB, free: 4.16 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01147/0.6864, allocations: 6.85 MB / 0.6003 GB, free: 12.94 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.058e-05/0.6865, allocations: 56.55 kB / 0.6004 GB, free: 12.88 MB / 478.1 MB Notification: Performance of pre-optimization done (n=235): time 5.75e-06/0.6865, allocations: 0 / 0.6004 GB, free: 12.88 MB / 478.1 MB Notification: Performance of matching and sorting (n=244): time 0.0368/0.7233, allocations: 16.48 MB / 0.6165 GB, free: 12.24 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/0.7234, allocations: 77.34 kB / 0.6166 GB, free: 12.15 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006786/0.7302, allocations: 3.203 MB / 0.6197 GB, free: 8.934 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002361/0.7305, allocations: 57.7 kB / 0.6197 GB, free: 8.871 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003318/0.7338, allocations: 3.309 MB / 0.623 GB, free: 5.512 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001217/0.735, allocations: 0.9174 MB / 0.6239 GB, free: 4.582 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005599/0.7356, allocations: 116 kB / 0.624 GB, free: 4.469 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0006244/0.7362, allocations: 0.5665 MB / 0.6245 GB, free: 3.895 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004319/0.7406, allocations: 2.401 MB / 0.6269 GB, free: 1.488 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2768/1.017, allocations: 5.8 MB / 0.6325 GB, free: 136 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007164/1.025, allocations: 3.71 MB / 0.6362 GB, free: 135.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.178e-05/1.025, allocations: 35.84 kB / 0.6362 GB, free: 135.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=813) (initialization): time 0.01454/1.039, allocations: 8.967 MB / 0.645 GB, free: 134.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.797e-05/1.039, allocations: 55.31 kB / 0.645 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001532/1.04, allocations: 118.9 kB / 0.6451 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002843/1.042, allocations: 1.147 MB / 0.6462 GB, free: 133.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004533/1.047, allocations: 1.386 MB / 0.6476 GB, free: 133.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005164/1.052, allocations: 4.595 MB / 0.6521 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004953/1.057, allocations: 329.1 kB / 0.6524 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001227/1.058, allocations: 354.1 kB / 0.6527 GB, free: 131.1 MB / 494.1 MB 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 (752): * Single equations (assignments): 744 * 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: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 5} Notification: Performance of prepare postOptimizeDAE: time 0.005847/1.064, allocations: 2.428 MB / 0.6551 GB, free: 130.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006892/1.065, allocations: 305.6 kB / 0.6554 GB, free: 130.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008182/1.073, allocations: 4.492 MB / 0.6598 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.473e-05/1.073, allocations: 46.28 kB / 0.6598 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.558e-05/1.073, allocations: 5.797 kB / 0.6598 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.079e-05/1.073, allocations: 13.94 kB / 0.6598 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02406/1.097, allocations: 10.61 MB / 0.6702 GB, free: 124.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-05/1.097, allocations: 4.531 kB / 0.6702 GB, free: 124.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/1.099, allocations: 401.4 kB / 0.6706 GB, free: 124.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/1.101, allocations: 0.6807 MB / 0.6713 GB, free: 124.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002104/1.101, allocations: 52.03 kB / 0.6713 GB, free: 124.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002644/1.104, allocations: 2.429 MB / 0.6737 GB, free: 123.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/1.104, allocations: 7.781 kB / 0.6737 GB, free: 123.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008226/1.112, allocations: 6.859 MB / 0.6804 GB, free: 120.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009387/1.113, allocations: 354.7 kB / 0.6807 GB, free: 120.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007654/1.114, allocations: 46.62 kB / 0.6808 GB, free: 120.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001641/1.115, allocations: 147.3 kB / 0.6809 GB, free: 120.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003265/1.116, allocations: 141.8 kB / 0.681 GB, free: 120.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001758/1.116, allocations: 66.91 kB / 0.6811 GB, free: 120.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004169/1.12, allocations: 1.938 MB / 0.683 GB, free: 119.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.12, allocations: 0 / 0.683 GB, free: 119.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008501/1.129, allocations: 1.081 MB / 0.6841 GB, free: 119 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (197): * Single equations (assignments): 188 * 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.01107/1.14, allocations: 7.527 MB / 0.6914 GB, free: 112.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009308/1.149, allocations: 5.875 MB / 0.6971 GB, free: 107.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.974e-06/1.149, allocations: 0 / 0.6971 GB, free: 107.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003578/1.153, allocations: 2.44 MB / 0.6995 GB, free: 105 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003368/1.156, allocations: 452 kB / 0.7 GB, free: 104.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05872/1.215, allocations: 34.8 MB / 0.7339 GB, free: 68.81 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006052/1.221, allocations: 3.759 MB / 0.7376 GB, free: 65.02 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005061/1.226, allocations: 2.056 MB / 0.7396 GB, free: 62.95 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003354/1.229, allocations: 2.151 MB / 0.7417 GB, free: 60.8 MB / 494.1 MB Notification: Performance of SimCode: time 1.222e-06/1.229, allocations: 0 / 0.7417 GB, free: 60.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3377/1.567, allocations: 76.41 MB / 0.8163 GB, free: 127.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/1.567, allocations: 225.3 kB / 0.8166 GB, free: 127.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.411/4.978, allocations: 3.797 kB / 0.8166 GB, free: 127.3 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat