Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001273/0.001273, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001308, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 247 MB, free: 10.45 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.225/0.225, allocations: 46.12 MB / 344.4 MB, free: 11.48 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.002449/0.002449, allocations: 79.88 kB / 480.9 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3364, allocations: 62.44 MB / 0.5306 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01844/0.3549, allocations: 15.98 MB / 0.5462 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01263/0.3676, allocations: 5.448 MB / 0.5515 GB, free: 12.28 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004031/0.3717, allocations: 111.6 kB / 0.5516 GB, free: 12.17 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01036/0.3821, allocations: 5.125 MB / 0.5566 GB, free: 7.031 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008075/0.3902, allocations: 2.579 MB / 0.5591 GB, free: 4.441 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003779/0.394, allocations: 1.384 MB / 0.5605 GB, free: 3.055 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0139/0.4079, allocations: 8.243 MB / 0.5685 GB, free: 10.8 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0104/0.4184, allocations: 7.029 MB / 0.5754 GB, free: 3.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006794/0.4252, allocations: 2.769 MB / 0.5781 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00757/0.4328, allocations: 3.743 MB / 0.5818 GB, free: 13.15 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002671/0.4356, allocations: 0.6328 MB / 0.5824 GB, free: 12.52 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00519/0.4408, allocations: 1.768 MB / 0.5841 GB, free: 10.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005276/0.4461, allocations: 3.312 MB / 0.5874 GB, free: 7.426 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008231/0.4543, allocations: 3.784 MB / 0.591 GB, free: 3.621 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01848/0.4729, allocations: 12.17 MB / 0.6029 GB, free: 7.398 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.226e-06/0.4729, allocations: 4 kB / 0.6029 GB, free: 7.395 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4729, allocations: 0 / 0.6029 GB, free: 7.395 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004772/0.4734, allocations: 0 / 0.6029 GB, free: 7.395 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02361/0.497, allocations: 8.377 MB / 0.6111 GB, free: 14.92 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.4971, allocations: 12.03 kB / 0.6111 GB, free: 14.91 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003044/0.5002, allocations: 1.148 MB / 0.6123 GB, free: 13.75 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05737/0.5576, allocations: 8.406 MB / 0.6205 GB, free: 5.328 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01427/0.5719, allocations: 5.899 MB / 0.6262 GB, free: 15.35 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003796/0.5723, allocations: 390 kB / 0.6266 GB, free: 14.97 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002094/0.5744, allocations: 0.5075 MB / 0.6271 GB, free: 14.46 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0357/0.6101, allocations: 15.41 MB / 0.6421 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003055/0.6105, allocations: 71.45 kB / 0.6422 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001409/0.6119, allocations: 235.8 kB / 0.6424 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004459/0.6163, allocations: 2.54 MB / 0.6449 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02898/0.6454, allocations: 12.88 MB / 0.6575 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08705/0.7324, allocations: 57.02 MB / 0.7132 GB, free: 3.801 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2916/1.024, allocations: 6.308 MB / 0.7193 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004036/1.028, allocations: 3.32 MB / 0.7226 GB, free: 160.1 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01444/1.043, allocations: 11.38 MB / 0.7337 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/1.043, allocations: 64.34 kB / 0.7338 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 5.12e-06/1.043, allocations: 0 / 0.7338 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=338): time 0.1228/1.166, allocations: 39.86 MB / 0.7727 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.721e-05/1.166, allocations: 243.8 kB / 0.7729 GB, free: 122.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007124/1.173, allocations: 5.75 MB / 0.7785 GB, free: 116.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008669/1.174, allocations: 73.7 kB / 0.7786 GB, free: 116.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002159/1.176, allocations: 4.613 MB / 0.7831 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001112/1.177, allocations: 1.299 MB / 0.7844 GB, free: 111 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001885/1.179, allocations: 1.636 MB / 0.786 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.731e-05/1.179, allocations: 305.1 kB / 0.7863 GB, free: 109 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004189/1.183, allocations: 3.768 MB / 0.7899 GB, free: 105.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006298/1.19, allocations: 8.306 MB / 0.7981 GB, free: 94.73 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0125/1.202, allocations: 13.01 MB / 0.8108 GB, free: 79.47 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001145/1.202, allocations: 48 kB / 0.8108 GB, free: 79.43 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.029/1.231, allocations: 15.49 MB / 0.8259 GB, free: 63.89 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001157/1.231, allocations: 80.03 kB / 0.826 GB, free: 63.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000218/1.232, allocations: 156 kB / 0.8262 GB, free: 63.66 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01243/1.244, allocations: 4.104 MB / 0.8302 GB, free: 59.55 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005956/1.25, allocations: 1.797 MB / 0.8319 GB, free: 57.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02581/1.276, allocations: 20.93 MB / 0.8524 GB, free: 36.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007389/1.283, allocations: 499.4 kB / 0.8528 GB, free: 36.19 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001743/1.285, allocations: 468 kB / 0.8533 GB, free: 35.73 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 717 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (966): * Single equations (assignments): 962 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,77,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005534/1.291, allocations: 3.115 MB / 0.8563 GB, free: 32.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001175/1.292, allocations: 0.5549 MB / 0.8569 GB, free: 32.04 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01766/1.309, allocations: 9.607 MB / 0.8663 GB, free: 22.37 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.745e-05/1.31, allocations: 39.67 kB / 0.8663 GB, free: 22.33 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.24e-05/1.31, allocations: 16 kB / 0.8663 GB, free: 22.32 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.141e-05/1.31, allocations: 11.95 kB / 0.8663 GB, free: 22.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03279/1.342, allocations: 19.64 MB / 0.8855 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.418e-05/1.343, allocations: 11.98 kB / 0.8855 GB, free: 2.496 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002174/1.345, allocations: 496.1 kB / 0.886 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01209/1.357, allocations: 3.661 MB / 0.8896 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006249/1.357, allocations: 63.98 kB / 0.8896 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03006/1.388, allocations: 18.43 MB / 0.9076 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.174e-05/1.388, allocations: 8.062 kB / 0.9076 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02902/1.417, allocations: 14.25 MB / 0.9215 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002009/1.419, allocations: 0.591 MB / 0.9221 GB, free: 12.65 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001491/1.42, allocations: 60 kB / 0.9222 GB, free: 12.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003408/1.424, allocations: 231.7 kB / 0.9224 GB, free: 12.37 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000957/1.425, allocations: 222.2 kB / 0.9226 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003067/1.425, allocations: 98.97 kB / 0.9227 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.006448/1.431, allocations: 3.643 MB / 0.9263 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.41e-07/1.431, allocations: 0.5625 kB / 0.9263 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007629/1.439, allocations: 1.68 MB / 0.9279 GB, free: 6.762 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 2 (revolute.phi,revolute.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 (256): * Single equations (assignments): 252 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,64,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02998/1.469, allocations: 14.98 MB / 0.9425 GB, free: 7.578 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.2797/1.749, allocations: 9.279 MB / 0.9516 GB, free: 214.1 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/1.749, allocations: 1.719 kB / 0.9516 GB, free: 214.1 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.004988/1.754, allocations: 3.663 MB / 0.9552 GB, free: 213.9 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004239/1.758, allocations: 0.7711 MB / 0.9559 GB, free: 213.8 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1133/1.871, allocations: 78.6 MB / 1.033 GB, free: 144.6 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005776/1.877, allocations: 4.826 MB / 1.037 GB, free: 139.7 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005323/1.883, allocations: 2.593 MB / 1.04 GB, free: 137.1 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00402/1.887, allocations: 3.069 MB / 1.043 GB, free: 134.1 MB / 0.6231 GB Notification: Performance of SimCode: time 1.162e-06/1.887, allocations: 0 / 1.043 GB, free: 134.1 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1708/2.057, allocations: 128 MB / 1.168 GB, free: 6.609 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.87/40.93, allocations: 12.56 kB / 1.168 GB, free: 6.598 MB / 0.6231 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1)