Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001785/0.001785, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002082/0.002082, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2519/0.2519, allocations: 46.11 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002215/0.002215, allocations: 82.48 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1491, allocations: 62.46 MB / 480.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.0171/0.1663, allocations: 14.98 MB / 495.2 MB, free: 6.055 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01201/0.1783, allocations: 4.833 MB / 0.4883 GB, free: 1.211 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003487/0.1819, allocations: 91.75 kB / 0.4884 GB, free: 1.121 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006613/0.1886, allocations: 3.153 MB / 0.4915 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006903/0.1955, allocations: 2.517 MB / 0.4939 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002353/0.1979, allocations: 0.9749 MB / 0.4949 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0111/0.209, allocations: 7.047 MB / 0.5018 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2781/0.4872, allocations: 4.373 MB / 0.506 GB, free: 14.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005737/0.493, allocations: 2.215 MB / 0.5082 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007101/0.5001, allocations: 3.241 MB / 0.5114 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002476/0.5026, allocations: 485.4 kB / 0.5118 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005735/0.5084, allocations: 1.478 MB / 0.5133 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005934/0.5144, allocations: 2.836 MB / 0.516 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007592/0.522, allocations: 3.297 MB / 0.5193 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01518/0.5372, allocations: 10.14 MB / 0.5292 GB, free: 9.016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.287e-06/0.5372, allocations: 0 / 0.5292 GB, free: 9.016 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.918e-06/0.5373, allocations: 3.438 kB / 0.5292 GB, free: 9.016 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005361/0.5378, allocations: 5.469 kB / 0.5292 GB, free: 9.012 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02391/0.5617, allocations: 7.469 MB / 0.5365 GB, free: 4.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.5618, allocations: 11.38 kB / 0.5365 GB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003703/0.5655, allocations: 1.144 MB / 0.5376 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04255/0.6081, allocations: 7.461 MB / 0.5449 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01191/0.62, allocations: 4.629 MB / 0.5494 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003117/0.6204, allocations: 318.7 kB / 0.5497 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002047/0.6224, allocations: 440.5 kB / 0.5501 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0344/0.6568, allocations: 15.62 MB / 0.5654 GB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004033/0.6573, allocations: 60.55 kB / 0.5654 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003209/0.6605, allocations: 204.9 kB / 0.5656 GB, free: 10.78 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006341/0.6669, allocations: 3.215 MB / 0.5688 GB, free: 7.609 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02991/0.6968, allocations: 13.95 MB / 0.5824 GB, free: 9.887 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08894/0.7858, allocations: 57.36 MB / 0.6384 GB, free: 15.77 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01527/0.8011, allocations: 6.512 MB / 0.6448 GB, free: 9.008 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006253/0.8074, allocations: 3.626 MB / 0.6483 GB, free: 5.375 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02537/0.8328, allocations: 14.45 MB / 0.6624 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.301e-05/0.8329, allocations: 59.19 kB / 0.6625 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=289): time 5.751e-06/0.8329, allocations: 0 / 0.6625 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of matching and sorting (n=339): time 0.1626/0.9956, allocations: 41.74 MB / 0.7032 GB, free: 12.77 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/0.9957, allocations: 214 kB / 0.7034 GB, free: 12.52 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01164/1.007, allocations: 5.486 MB / 0.7088 GB, free: 7.047 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001157/1.009, allocations: 72.98 kB / 0.7089 GB, free: 6.973 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003819/1.012, allocations: 4.408 MB / 0.7132 GB, free: 2.566 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002007/1.014, allocations: 1.251 MB / 0.7144 GB, free: 1.324 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2067/1.221, allocations: 1.772 MB / 0.7161 GB, free: 192.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.451e-05/1.221, allocations: 302.6 kB / 0.7164 GB, free: 192 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008621/1.23, allocations: 4.647 MB / 0.721 GB, free: 191.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01177/1.242, allocations: 9.614 MB / 0.7303 GB, free: 183 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01812/1.26, allocations: 15.3 MB / 0.7453 GB, free: 171.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002828/1.26, allocations: 51.41 kB / 0.7453 GB, free: 171.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04695/1.307, allocations: 19.01 MB / 0.7639 GB, free: 164.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003676/1.308, allocations: 80 kB / 0.764 GB, free: 164.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004375/1.308, allocations: 172 kB / 0.7641 GB, free: 163.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02268/1.331, allocations: 5.782 MB / 0.7698 GB, free: 160.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007569/1.338, allocations: 2.067 MB / 0.7718 GB, free: 158.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02901/1.367, allocations: 25.65 MB / 0.7969 GB, free: 132.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008433/1.376, allocations: 0.551 MB / 0.7974 GB, free: 132.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002474/1.378, allocations: 0.4975 MB / 0.7979 GB, free: 131.8 MB / 0.545 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008444/1.387, allocations: 3.101 MB / 0.8009 GB, free: 128.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001639/1.388, allocations: 0.4937 MB / 0.8014 GB, free: 128.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0314/1.42, allocations: 12.69 MB / 0.8138 GB, free: 115.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.325e-05/1.42, allocations: 55.98 kB / 0.8138 GB, free: 115.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.322e-05/1.42, allocations: 8 kB / 0.8138 GB, free: 115.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.554e-05/1.42, allocations: 15.89 kB / 0.8139 GB, free: 115.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05273/1.473, allocations: 24.37 MB / 0.8377 GB, free: 90.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.016e-05/1.473, allocations: 4 kB / 0.8377 GB, free: 90.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003305/1.476, allocations: 0.5817 MB / 0.8382 GB, free: 90.37 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01876/1.495, allocations: 4.811 MB / 0.8429 GB, free: 85.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008405/1.496, allocations: 62.03 kB / 0.843 GB, free: 85.49 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02284/1.519, allocations: 20.89 MB / 0.8634 GB, free: 64.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/1.519, allocations: 20.81 kB / 0.8634 GB, free: 64.38 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03428/1.553, allocations: 17.11 MB / 0.8801 GB, free: 47.18 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/1.555, allocations: 0.5219 MB / 0.8806 GB, free: 46.64 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001762/1.556, allocations: 59.98 kB / 0.8807 GB, free: 46.58 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003784/1.56, allocations: 261.2 kB / 0.8809 GB, free: 46.33 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001171/1.561, allocations: 189.6 kB / 0.8811 GB, free: 46.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005381/1.562, allocations: 84 kB / 0.8812 GB, free: 46.06 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006296/1.568, allocations: 3.416 MB / 0.8845 GB, free: 42.66 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.51e-07/1.568, allocations: 4 kB / 0.8845 GB, free: 42.66 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01029/1.579, allocations: 1.686 MB / 0.8862 GB, free: 40.98 MB / 0.545 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03481/1.613, allocations: 17.79 MB / 0.9035 GB, free: 23.03 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2589/1.872, allocations: 15.42 MB / 0.9186 GB, free: 188.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.359e-05/1.872, allocations: 1.281 kB / 0.9186 GB, free: 188.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007158/1.88, allocations: 4.054 MB / 0.9226 GB, free: 187.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005019/1.885, allocations: 0.6417 MB / 0.9232 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.168/2.053, allocations: 98.42 MB / 1.019 GB, free: 98.19 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01038/2.063, allocations: 4.627 MB / 1.024 GB, free: 93.54 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009209/2.072, allocations: 2.986 MB / 1.027 GB, free: 90.55 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006739/2.079, allocations: 2.917 MB / 1.03 GB, free: 87.64 MB / 0.545 GB Notification: Performance of SimCode: time 1.984e-06/2.079, allocations: 3.938 kB / 1.03 GB, free: 87.63 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4946/2.574, allocations: 130.7 MB / 1.157 GB, free: 164.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.24/15.81, allocations: 2.172 kB / 1.157 GB, free: 164.6 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1)