Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",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.0009893/0.0009893, allocations: 96.52 kB / 15.69 MB, free: 480 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.001044/0.001044, allocations: 176.2 kB / 16.57 MB, free: 6.387 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.863/1.863, allocations: 205.4 MB / 222.7 MB, free: 5.668 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.4482/0.4482, allocations: 43.54 MB / 314.5 MB, free: 9.109 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.0005708/0.0005708, allocations: 16 kB / 384 MB, free: 8.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.1615, allocations: 58.86 MB / 442.8 MB, free: 13.22 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3903/0.5518, allocations: 45.77 MB / 488.6 MB, free: 22.47 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03255/0.5844, allocations: 11.09 MB / 499.7 MB, free: 14.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01425/0.5988, allocations: 232.3 kB / 499.9 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01059/0.6094, allocations: 2.282 MB / 0.4904 GB, free: 14.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03106/0.6405, allocations: 6.683 MB / 0.497 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00519/0.6458, allocations: 0.8438 MB / 0.4978 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0515/0.6973, allocations: 28.08 MB / 0.5252 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009531/0.7069, allocations: 5.091 MB / 0.5302 GB, free: 6.648 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004711/0.7116, allocations: 1.565 MB / 0.5317 GB, free: 5.078 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0049/0.7166, allocations: 2.282 MB / 0.5339 GB, free: 2.789 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001657/0.7183, allocations: 236 kB / 0.5342 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003631/0.7219, allocations: 1.089 MB / 0.5352 GB, free: 1.469 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003583/0.7255, allocations: 2.412 MB / 0.5376 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002581/0.7281, allocations: 1.205 MB / 0.5388 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01288/0.741, allocations: 8.11 MB / 0.5467 GB, free: 5.707 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.7411, allocations: 4 kB / 0.5467 GB, free: 5.703 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.7411, allocations: 0 / 0.5467 GB, free: 5.703 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004778/0.7416, allocations: 0 / 0.5467 GB, free: 5.703 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02083/0.7624, allocations: 6.49 MB / 0.553 GB, free: 15.13 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.478e-05/0.7625, allocations: 8.031 kB / 0.553 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004938/0.7675, allocations: 1.14 MB / 0.5541 GB, free: 13.97 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04981/0.8173, allocations: 9.719 MB / 0.5636 GB, free: 4.227 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01421/0.8315, allocations: 4.692 MB / 0.5682 GB, free: 15.48 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000357/0.832, allocations: 316 kB / 0.5685 GB, free: 15.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00207/0.834, allocations: 439.6 kB / 0.5689 GB, free: 14.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03126/0.8653, allocations: 15.77 MB / 0.5843 GB, free: 14.04 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001869/0.8655, allocations: 59.44 kB / 0.5844 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006441/0.8662, allocations: 199.8 kB / 0.5846 GB, free: 13.78 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005332/0.8715, allocations: 3.22 MB / 0.5877 GB, free: 10.56 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03247/0.904, allocations: 14.1 MB / 0.6015 GB, free: 12.43 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4582/1.362, allocations: 57.57 MB / 0.6577 GB, free: 101 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01539/1.378, allocations: 6.594 MB / 0.6642 GB, free: 99.78 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02804/1.406, allocations: 14.55 MB / 0.6784 GB, free: 92.76 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.487e-05/1.406, allocations: 70.44 kB / 0.6784 GB, free: 92.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=289): time 7.494e-06/1.406, allocations: 0 / 0.6784 GB, free: 92.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=339): time 0.154/1.56, allocations: 43 MB / 0.7204 GB, free: 76.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/1.56, allocations: 210 kB / 0.7206 GB, free: 75.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00849/1.569, allocations: 5.734 MB / 0.7262 GB, free: 70.19 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001139/1.57, allocations: 73.7 kB / 0.7263 GB, free: 70.11 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003247/1.573, allocations: 4.414 MB / 0.7306 GB, free: 65.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002335/1.575, allocations: 1.257 MB / 0.7318 GB, free: 64.46 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004788/1.576, allocations: 172 kB / 0.732 GB, free: 64.29 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0004658/1.576, allocations: 0.6819 MB / 0.7327 GB, free: 63.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00611/1.582, allocations: 4.612 MB / 0.7372 GB, free: 58.98 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009329/1.592, allocations: 9.544 MB / 0.7465 GB, free: 47.04 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009566/1.601, allocations: 6.489 MB / 0.7528 GB, free: 40.53 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002553/1.602, allocations: 55.94 kB / 0.7529 GB, free: 40.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04888/1.651, allocations: 18.95 MB / 0.7714 GB, free: 21.47 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003048/1.651, allocations: 86.64 kB / 0.7715 GB, free: 21.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003823/1.651, allocations: 174.3 kB / 0.7716 GB, free: 21.22 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02244/1.674, allocations: 5.831 MB / 0.7773 GB, free: 15.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008293/1.682, allocations: 2.059 MB / 0.7793 GB, free: 13.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03369/1.716, allocations: 24.94 MB / 0.8037 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01036/1.726, allocations: 0.5488 MB / 0.8042 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002538/1.729, allocations: 0.5 MB / 0.8047 GB, free: 3.062 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.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 (1058): * Single equations (assignments): 1050 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01191/1.741, allocations: 3.098 MB / 0.8077 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002497/1.743, allocations: 0.4974 MB / 0.8082 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.035/1.778, allocations: 12.68 MB / 0.8206 GB, free: 2.691 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001263/1.779, allocations: 54.58 kB / 0.8207 GB, free: 2.641 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.092e-05/1.779, allocations: 8 kB / 0.8207 GB, free: 2.633 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-05/1.779, allocations: 23.94 kB / 0.8207 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4043/2.183, allocations: 24.45 MB / 0.8446 GB, free: 148.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.762e-05/2.183, allocations: 9 kB / 0.8446 GB, free: 148.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003485/2.187, allocations: 0.5673 MB / 0.8451 GB, free: 148.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02188/2.209, allocations: 4.84 MB / 0.8499 GB, free: 147.5 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001294/2.21, allocations: 56.22 kB / 0.8499 GB, free: 147.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03417/2.244, allocations: 20.2 MB / 0.8697 GB, free: 137.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.83e-05/2.244, allocations: 11 kB / 0.8697 GB, free: 137.8 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03881/2.283, allocations: 17.83 MB / 0.8871 GB, free: 131 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004668/2.288, allocations: 1.257 MB / 0.8883 GB, free: 130.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00173/2.289, allocations: 51.06 kB / 0.8884 GB, free: 130.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003816/2.293, allocations: 259.1 kB / 0.8886 GB, free: 130.5 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008046/2.294, allocations: 198.2 kB / 0.8888 GB, free: 130.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002687/2.294, allocations: 83.22 kB / 0.8889 GB, free: 130.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006582/2.301, allocations: 3.616 MB / 0.8924 GB, free: 128.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.2e-07/2.301, allocations: 3.969 kB / 0.8924 GB, free: 128.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01111/2.312, allocations: 1.74 MB / 0.8941 GB, free: 128.8 MB / 0.5137 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 (254): * Single equations (assignments): 246 * Array equations: 6 * 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 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03628/2.348, allocations: 19.55 MB / 0.9132 GB, free: 109.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02003/2.369, allocations: 10.6 MB / 0.9236 GB, free: 98.59 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.607e-05/2.369, allocations: 0 / 0.9236 GB, free: 98.59 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006193/2.375, allocations: 4.049 MB / 0.9275 GB, free: 94.53 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00382/2.379, allocations: 0.5816 MB / 0.9281 GB, free: 93.97 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3797/2.758, allocations: 149.3 MB / 1.074 GB, free: 90.29 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01107/2.77, allocations: 4.761 MB / 1.079 GB, free: 89.42 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.009422/2.779, allocations: 3.002 MB / 1.081 GB, free: 89.34 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008216/2.787, allocations: 2.936 MB / 1.084 GB, free: 89.33 MB / 0.5137 GB Notification: Performance of SimCode: time 1.773e-06/2.787, allocations: 0 / 1.084 GB, free: 89.33 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5454/3.333, allocations: 135.5 MB / 1.217 GB, free: 138.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/3.333, allocations: 221.1 kB / 1.217 GB, free: 138 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.953/8.286, allocations: 0 / 1.217 GB, free: 138 MB / 0.5294 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat