Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008893/0.0008893, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007788/0.0007788, allocations: 174 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9153/0.9153, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2598/0.2598, allocations: 34.25 MB / 294.9 MB, free: 0.6914 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 442.2 MB, free: 1.633 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.202e-05/2.35e-05, allocations: 4.531 kB / 442.2 MB, free: 1.629 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.1978/0.1978, allocations: 12.76 MB / 454.9 MB, free: 37.04 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.008902/0.2067, allocations: 4.819 MB / 459.8 MB, free: 33.94 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002294/0.209, allocations: 120 kB / 459.9 MB, free: 33.9 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004189/0.2132, allocations: 4.258 MB / 464.1 MB, free: 32.07 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004969/0.2182, allocations: 2.457 MB / 466.6 MB, free: 30.86 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00202/0.2202, allocations: 1.171 MB / 467.8 MB, free: 30.31 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.006996/0.2272, allocations: 8.241 MB / 476 MB, free: 27.23 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005235/0.2324, allocations: 4.811 MB / 480.8 MB, free: 25.15 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00636/0.2388, allocations: 3.514 MB / 484.3 MB, free: 23.61 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005824/0.2446, allocations: 3.432 MB / 487.8 MB, free: 22.69 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001921/0.2465, allocations: 0.4998 MB / 488.3 MB, free: 22.69 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003209/0.2497, allocations: 1.325 MB / 489.6 MB, free: 22.5 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00327/0.253, allocations: 2.947 MB / 492.5 MB, free: 21.23 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007481/0.2605, allocations: 2.003 MB / 494.5 MB, free: 20.23 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01776/0.2783, allocations: 10.28 MB / 0.493 GB, free: 14.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.2783, allocations: 0 / 0.493 GB, free: 14.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2783, allocations: 0 / 0.493 GB, free: 14.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005258/0.2788, allocations: 3.938 kB / 0.493 GB, free: 14.81 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.02242/0.3012, allocations: 7.343 MB / 0.5002 GB, free: 9.785 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.3013, allocations: 10.62 kB / 0.5002 GB, free: 9.785 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002158/0.3034, allocations: 0.9288 MB / 0.5011 GB, free: 9.137 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0745/0.3779, allocations: 12.98 MB / 0.5138 GB, free: 12.87 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01004/0.388, allocations: 4.502 MB / 0.5182 GB, free: 8.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002323/0.3882, allocations: 320.8 kB / 0.5185 GB, free: 7.953 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002162/0.3904, allocations: 452.1 kB / 0.5189 GB, free: 7.512 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02327/0.4136, allocations: 13.12 MB / 0.5317 GB, free: 9.48 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002669/0.4139, allocations: 75.41 kB / 0.5318 GB, free: 9.406 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007285/0.4146, allocations: 203.8 kB / 0.532 GB, free: 9.207 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003243/0.4179, allocations: 2.527 MB / 0.5344 GB, free: 6.676 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01861/0.4365, allocations: 11.09 MB / 0.5453 GB, free: 11.59 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06117/0.4976, allocations: 49.47 MB / 0.5936 GB, free: 8.902 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009313/0.507, allocations: 5.027 MB / 0.5985 GB, free: 3.836 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003567/0.5105, allocations: 3.117 MB / 0.6015 GB, free: 0.7109 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004201/0.5109, allocations: 242.3 kB / 0.6018 GB, free: 488 kB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.941e-05/0.511, allocations: 60.56 kB / 0.6018 GB, free: 416 kB / 0.4948 GB Notification: Performance of pre-optimization done (n=245): time 9.919e-06/0.511, allocations: 3.938 kB / 0.6018 GB, free: 412 kB / 0.4948 GB Notification: Performance of matching and sorting (n=315): time 0.2891/0.8001, allocations: 35.94 MB / 0.6369 GB, free: 151.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.992e-05/0.8002, allocations: 268.5 kB / 0.6372 GB, free: 151.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007187/0.8073, allocations: 5.954 MB / 0.643 GB, free: 149.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008924/0.8082, allocations: 73.92 kB / 0.6431 GB, free: 149.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001451/0.8097, allocations: 4.024 MB / 0.647 GB, free: 147 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00102/0.8107, allocations: 1.201 MB / 0.6482 GB, free: 146.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001369/0.8121, allocations: 1.509 MB / 0.6496 GB, free: 145.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 3.689e-05/0.8121, allocations: 304.4 kB / 0.6499 GB, free: 145.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00311/0.8152, allocations: 3.408 MB / 0.6532 GB, free: 143.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0042/0.8194, allocations: 7.661 MB / 0.6607 GB, free: 137 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009887/0.8293, allocations: 11.85 MB / 0.6723 GB, free: 128.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000152/0.8295, allocations: 42.09 kB / 0.6723 GB, free: 128.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02151/0.851, allocations: 12.73 MB / 0.6848 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001414/0.8511, allocations: 66.52 kB / 0.6848 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002565/0.8514, allocations: 144.3 kB / 0.685 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004131/0.8555, allocations: 2.238 MB / 0.6872 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005037/0.8605, allocations: 1.724 MB / 0.6888 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01345/0.874, allocations: 16.12 MB / 0.7046 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006618/0.8806, allocations: 0.5342 MB / 0.7051 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001651/0.8823, allocations: 443 kB / 0.7055 GB, free: 113.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 656 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (906): * Single equations (assignments): 901 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005937/0.8882, allocations: 2.746 MB / 0.7082 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001793/0.89, allocations: 0.5084 MB / 0.7087 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008353/0.8984, allocations: 7.259 MB / 0.7158 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.703e-05/0.8984, allocations: 35.94 kB / 0.7158 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-05/0.8984, allocations: 12 kB / 0.7159 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.77e-05/0.8984, allocations: 21.53 kB / 0.7159 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02127/0.9197, allocations: 15.4 MB / 0.7309 GB, free: 91.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.708e-05/0.9197, allocations: 4 kB / 0.7309 GB, free: 91.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.921, allocations: 0.4993 MB / 0.7314 GB, free: 90.75 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002781/0.9238, allocations: 2.005 MB / 0.7334 GB, free: 88.73 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000338/0.9242, allocations: 59.98 kB / 0.7334 GB, free: 88.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0115/0.9357, allocations: 14.65 MB / 0.7477 GB, free: 73.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.9357, allocations: 11.94 kB / 0.7477 GB, free: 73.8 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01135/0.947, allocations: 11.65 MB / 0.7591 GB, free: 61.95 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001894/0.9489, allocations: 0.5627 MB / 0.7597 GB, free: 61.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007669/0.9497, allocations: 63.98 kB / 0.7597 GB, free: 61.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/0.9513, allocations: 287.5 kB / 0.76 GB, free: 61.04 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004186/0.9517, allocations: 217.4 kB / 0.7602 GB, free: 60.83 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001456/0.9519, allocations: 84 kB / 0.7603 GB, free: 60.75 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004052/0.9559, allocations: 3.7 MB / 0.7639 GB, free: 57.07 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4e-07/0.9559, allocations: 0 / 0.7639 GB, free: 57.07 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005813/0.9617, allocations: 1.664 MB / 0.7655 GB, free: 55.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (253): * Single equations (assignments): 248 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,17,46.9%), (7,17,46.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01023/0.972, allocations: 12.37 MB / 0.7776 GB, free: 42.82 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009424/0.9814, allocations: 8.125 MB / 0.7855 GB, free: 34.71 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/0.9814, allocations: 4 kB / 0.7855 GB, free: 34.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004145/0.9855, allocations: 3.852 MB / 0.7893 GB, free: 30.82 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003504/0.989, allocations: 0.7092 MB / 0.79 GB, free: 30.16 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3013/1.29, allocations: 69.63 MB / 0.858 GB, free: 159.1 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004085/1.294, allocations: 3.772 MB / 0.8617 GB, free: 158.1 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004015/1.298, allocations: 2.479 MB / 0.8641 GB, free: 158.1 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003185/1.302, allocations: 2.727 MB / 0.8668 GB, free: 155.9 MB / 0.5573 GB Notification: Performance of SimCode: time 1.633e-06/1.302, allocations: 0 / 0.8668 GB, free: 155.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1392/1.441, allocations: 117.5 MB / 0.9815 GB, free: 66.15 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/14.04, allocations: 12 kB / 0.9815 GB, free: 66.14 MB / 0.5573 GB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.1540750246495] Failed to read output from testmodel.py, exit status != 0: ['time', 'freeMotion.r_rel_a[1]', 'freeMotion.v_rel_a[1]', 'prismatic1.s', 'prismatic1.v', 'universal.phi_a', 'universal.phi_b', 'universal.w_a', 'universal.w_b', 'universal1.phi_a', 'universal1.phi_b', 'universal1.w_a', 'universal1.w_b'] 14.174595351330936 14.181070121 13.900950164 Calling exit ...