Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",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.0008135/0.0008132, allocations: 88.19 kB / 15.7 MB, free: 460 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.001005/0.001005, allocations: 175.2 kB / 16.58 MB, free: 6.844 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.664 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.3808/0.3808, allocations: 43.56 MB / 314.6 MB, free: 8.777 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.0005463/0.0005463, allocations: 16 kB / 384 MB, free: 7.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1158, allocations: 58.86 MB / 442.9 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.2744/0.3902, allocations: 42.62 MB / 485.5 MB, free: 24.53 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02332/0.4136, allocations: 9.587 MB / 495.1 MB, free: 18.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009195/0.4228, allocations: 205.9 kB / 495.3 MB, free: 18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006555/0.4294, allocations: 2.173 MB / 497.5 MB, free: 17.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01842/0.4479, allocations: 6.621 MB / 0.4923 GB, free: 14.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003413/0.4513, allocations: 0.7782 MB / 0.493 GB, free: 14.17 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04727/0.4986, allocations: 35.13 MB / 0.5273 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006492/0.5051, allocations: 4.256 MB / 0.5315 GB, free: 5.406 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002937/0.5081, allocations: 1.452 MB / 0.5329 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003309/0.5114, allocations: 2.415 MB / 0.5353 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004847/0.5119, allocations: 176 kB / 0.5354 GB, free: 1.355 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002049/0.514, allocations: 1.077 MB / 0.5365 GB, free: 284 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00212/0.5161, allocations: 1.956 MB / 0.5384 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.5173, allocations: 0.8933 MB / 0.5393 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00699/0.5243, allocations: 6.165 MB / 0.5453 GB, free: 7.234 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.468e-06/0.5243, allocations: 0 / 0.5453 GB, free: 7.234 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.559e-06/0.5244, allocations: 4 kB / 0.5453 GB, free: 7.23 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002244/0.5246, allocations: 3.938 kB / 0.5453 GB, free: 7.227 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.0111/0.5357, allocations: 4.836 MB / 0.55 GB, free: 2.316 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.5358, allocations: 12.03 kB / 0.55 GB, free: 2.305 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00142/0.5372, allocations: 0.8004 MB / 0.5508 GB, free: 1.492 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03099/0.5682, allocations: 6.049 MB / 0.5567 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00887/0.5771, allocations: 4.247 MB / 0.5609 GB, free: 7.125 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/0.5773, allocations: 242.1 kB / 0.5611 GB, free: 6.887 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006376/0.5779, allocations: 339.6 kB / 0.5614 GB, free: 6.555 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01696/0.5949, allocations: 10.79 MB / 0.572 GB, free: 11.03 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001137/0.595, allocations: 47.5 kB / 0.572 GB, free: 10.98 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003861/0.5954, allocations: 159.8 kB / 0.5722 GB, free: 10.82 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00288/0.5983, allocations: 1.998 MB / 0.5741 GB, free: 8.824 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01741/0.6158, allocations: 9.222 MB / 0.5831 GB, free: 15.58 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05168/0.6675, allocations: 41.04 MB / 0.6232 GB, free: 5.359 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01067/0.6782, allocations: 4.232 MB / 0.6273 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2451/0.9234, allocations: 1.873 MB / 0.6291 GB, free: 141.6 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/0.9347, allocations: 7.5 MB / 0.6365 GB, free: 139.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.237e-05/0.9348, allocations: 51.78 kB / 0.6365 GB, free: 139.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 5.149e-06/0.9348, allocations: 0 / 0.6365 GB, free: 139.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.1444/1.079, allocations: 41.27 MB / 0.6768 GB, free: 129.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.223e-05/1.079, allocations: 201.2 kB / 0.677 GB, free: 129.7 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006472/1.086, allocations: 4.335 MB / 0.6813 GB, free: 127.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006823/1.087, allocations: 61.52 kB / 0.6813 GB, free: 127.4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002092/1.089, allocations: 3.224 MB / 0.6845 GB, free: 124.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001096/1.09, allocations: 0.8786 MB / 0.6853 GB, free: 123.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003601/1.09, allocations: 123.7 kB / 0.6854 GB, free: 123.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003025/1.09, allocations: 0.5726 MB / 0.686 GB, free: 123.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004402/1.095, allocations: 3.469 MB / 0.6894 GB, free: 120.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006142/1.101, allocations: 7.084 MB / 0.6963 GB, free: 111.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006076/1.107, allocations: 4.806 MB / 0.701 GB, free: 106.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.226e-05/1.107, allocations: 36 kB / 0.701 GB, free: 106.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03189/1.139, allocations: 15.66 MB / 0.7163 GB, free: 91.17 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.258e-05/1.139, allocations: 68.05 kB / 0.7164 GB, free: 91.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/1.139, allocations: 124 kB / 0.7165 GB, free: 90.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01902/1.158, allocations: 6.111 MB / 0.7225 GB, free: 84.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004924/1.163, allocations: 1.432 MB / 0.7239 GB, free: 83.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03062/1.194, allocations: 25.67 MB / 0.7489 GB, free: 57.49 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007026/1.201, allocations: 399 kB / 0.7493 GB, free: 57.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00141/1.202, allocations: 380 kB / 0.7497 GB, free: 56.73 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (741): * Single equations (assignments): 736 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007795/1.21, allocations: 2.211 MB / 0.7518 GB, free: 54.51 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002072/1.212, allocations: 402.8 kB / 0.7522 GB, free: 54.11 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02596/1.238, allocations: 11.07 MB / 0.763 GB, free: 43.01 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.645e-05/1.238, allocations: 24 kB / 0.7631 GB, free: 42.98 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-05/1.239, allocations: 12 kB / 0.7631 GB, free: 42.97 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.136e-05/1.239, allocations: 11.95 kB / 0.7631 GB, free: 42.96 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04231/1.281, allocations: 20.59 MB / 0.7832 GB, free: 21.92 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.056e-05/1.281, allocations: 11.95 kB / 0.7832 GB, free: 21.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001956/1.283, allocations: 391.8 kB / 0.7836 GB, free: 21.53 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01677/1.3, allocations: 5.176 MB / 0.7886 GB, free: 16.34 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000583/1.3, allocations: 47.98 kB / 0.7887 GB, free: 16.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02585/1.326, allocations: 20.77 MB / 0.809 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/1.326, allocations: 15.94 kB / 0.809 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3153/1.642, allocations: 14.29 MB / 0.8229 GB, free: 142.8 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002703/1.644, allocations: 0.9838 MB / 0.8239 GB, free: 142.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007625/1.645, allocations: 41.19 kB / 0.8239 GB, free: 142.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002032/1.647, allocations: 180.9 kB / 0.8241 GB, free: 142.7 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005339/1.648, allocations: 154.9 kB / 0.8242 GB, free: 142.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002121/1.648, allocations: 65.47 kB / 0.8243 GB, free: 142.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004044/1.652, allocations: 2.729 MB / 0.827 GB, free: 142.2 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/1.652, allocations: 1.75 kB / 0.827 GB, free: 142.2 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006479/1.659, allocations: 1.331 MB / 0.8283 GB, free: 142.1 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * 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 (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03152/1.69, allocations: 14.93 MB / 0.8429 GB, free: 136.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01571/1.706, allocations: 8.044 MB / 0.8507 GB, free: 133.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.678e-05/1.706, allocations: 0.9062 kB / 0.8507 GB, free: 133.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.007259/1.713, allocations: 3.169 MB / 0.8538 GB, free: 132.1 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006148/1.719, allocations: 0.5147 MB / 0.8543 GB, free: 131.9 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1052/1.825, allocations: 49.55 MB / 0.9027 GB, free: 93.85 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005915/1.831, allocations: 3.519 MB / 0.9061 GB, free: 90.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005544/1.836, allocations: 1.971 MB / 0.9081 GB, free: 88.33 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003561/1.84, allocations: 2.081 MB / 0.9101 GB, free: 86.25 MB / 0.4981 GB Notification: Performance of SimCode: time 2.204e-06/1.84, allocations: 7.875 kB / 0.9101 GB, free: 86.25 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4317/2.271, allocations: 110.6 MB / 1.018 GB, free: 145.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001407/2.272, allocations: 218.5 kB / 1.018 GB, free: 145.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.643/5.915, allocations: 0 / 1.018 GB, free: 145.5 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat