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.001812/0.001812, allocations: 122.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002258/0.002258, allocations: 202 kB / 18.74 MB, free: 4.312 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 / 247 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.2271/0.2271, allocations: 46.12 MB / 344.4 MB, free: 11.46 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.002446/0.002447, allocations: 79.86 kB / 480.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3525, allocations: 62.43 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01856/0.3711, allocations: 15.98 MB / 0.5462 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01381/0.3849, allocations: 5.444 MB / 0.5515 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004376/0.3894, allocations: 119.6 kB / 0.5516 GB, free: 12.13 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00991/0.3994, allocations: 5.121 MB / 0.5566 GB, free: 6.996 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007629/0.407, allocations: 2.579 MB / 0.5591 GB, free: 4.406 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00344/0.4105, allocations: 1.373 MB / 0.5605 GB, free: 3.031 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01378/0.4243, allocations: 8.261 MB / 0.5686 GB, free: 10.76 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01032/0.4347, allocations: 7.028 MB / 0.5754 GB, free: 3.641 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005201/0.4399, allocations: 2.765 MB / 0.5781 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006632/0.4466, allocations: 3.743 MB / 0.5818 GB, free: 13.11 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002391/0.449, allocations: 0.6367 MB / 0.5824 GB, free: 12.48 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00515/0.4542, allocations: 1.764 MB / 0.5841 GB, free: 10.71 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005207/0.4594, allocations: 3.316 MB / 0.5874 GB, free: 7.387 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0068/0.4662, allocations: 3.78 MB / 0.591 GB, free: 3.586 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01668/0.483, allocations: 12.17 MB / 0.6029 GB, free: 7.359 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.483, allocations: 0 / 0.6029 GB, free: 7.359 MB / 462.1 MB Notification: Performance of FrontEnd: time 7.283e-06/0.483, allocations: 3.938 kB / 0.6029 GB, free: 7.355 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003261/0.4834, allocations: 7.938 kB / 0.6029 GB, free: 7.348 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.02196/0.5053, allocations: 8.37 MB / 0.6111 GB, free: 14.88 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.951e-05/0.5054, allocations: 8.031 kB / 0.6111 GB, free: 14.88 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003452/0.5089, allocations: 1.156 MB / 0.6123 GB, free: 13.71 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05769/0.5666, allocations: 8.406 MB / 0.6205 GB, free: 5.285 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01491/0.5815, allocations: 5.903 MB / 0.6262 GB, free: 15.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005013/0.5821, allocations: 386 kB / 0.6266 GB, free: 14.93 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002258/0.5843, allocations: 0.5036 MB / 0.6271 GB, free: 14.42 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03795/0.6223, allocations: 15.41 MB / 0.6421 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002539/0.6226, allocations: 71.45 kB / 0.6422 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001257/0.6239, allocations: 235.8 kB / 0.6424 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004432/0.6283, allocations: 2.544 MB / 0.6449 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0299/0.6582, allocations: 12.89 MB / 0.6575 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08809/0.7464, allocations: 57.01 MB / 0.7132 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2753/1.022, allocations: 6.317 MB / 0.7194 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006087/1.028, allocations: 3.312 MB / 0.7226 GB, free: 160 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02263/1.05, allocations: 11.39 MB / 0.7337 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.549e-05/1.051, allocations: 60.31 kB / 0.7338 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 4.999e-06/1.051, allocations: 1.031 kB / 0.7338 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=338): time 0.1334/1.184, allocations: 39.86 MB / 0.7727 GB, free: 122.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.584e-05/1.184, allocations: 243.8 kB / 0.7729 GB, free: 122.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009647/1.194, allocations: 5.737 MB / 0.7785 GB, free: 116.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008108/1.195, allocations: 77.7 kB / 0.7786 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002371/1.197, allocations: 4.621 MB / 0.7831 GB, free: 112.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001378/1.198, allocations: 1.29 MB / 0.7844 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003368/1.202, allocations: 1.64 MB / 0.786 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.899e-05/1.202, allocations: 301.1 kB / 0.7863 GB, free: 109 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004474/1.206, allocations: 3.776 MB / 0.7899 GB, free: 105.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008186/1.214, allocations: 8.302 MB / 0.7981 GB, free: 94.65 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01369/1.228, allocations: 13.01 MB / 0.8108 GB, free: 79.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001392/1.228, allocations: 44 kB / 0.8108 GB, free: 79.36 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03204/1.26, allocations: 15.49 MB / 0.8259 GB, free: 63.81 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001806/1.261, allocations: 78.03 kB / 0.826 GB, free: 63.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002625/1.261, allocations: 156 kB / 0.8262 GB, free: 63.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01257/1.274, allocations: 4.104 MB / 0.8302 GB, free: 59.47 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005537/1.279, allocations: 1.797 MB / 0.8319 GB, free: 57.67 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02627/1.305, allocations: 20.93 MB / 0.8524 GB, free: 36.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00761/1.313, allocations: 0.4951 MB / 0.8528 GB, free: 36.11 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001674/1.315, allocations: 479.8 kB / 0.8533 GB, free: 35.64 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.006316/1.321, allocations: 3.107 MB / 0.8563 GB, free: 32.52 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001705/1.323, allocations: 0.551 MB / 0.8569 GB, free: 31.97 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02153/1.344, allocations: 9.611 MB / 0.8663 GB, free: 22.29 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.536e-05/1.345, allocations: 32 kB / 0.8663 GB, free: 22.26 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.476e-05/1.345, allocations: 23.97 kB / 0.8663 GB, free: 22.23 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.696e-05/1.345, allocations: 11.95 kB / 0.8663 GB, free: 22.22 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04184/1.387, allocations: 19.64 MB / 0.8855 GB, free: 2.426 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-05/1.387, allocations: 4 kB / 0.8855 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002579/1.389, allocations: 496.1 kB / 0.886 GB, free: 1.938 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01268/1.402, allocations: 3.657 MB / 0.8896 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008671/1.403, allocations: 63.98 kB / 0.8896 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03275/1.436, allocations: 18.44 MB / 0.9076 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.106e-05/1.436, allocations: 4.469 kB / 0.9076 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03217/1.468, allocations: 14.25 MB / 0.9215 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002196/1.47, allocations: 0.591 MB / 0.9221 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002063/1.472, allocations: 67.53 kB / 0.9222 GB, free: 12.51 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004226/1.476, allocations: 227.8 kB / 0.9224 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001291/1.478, allocations: 226.1 kB / 0.9226 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000646/1.478, allocations: 91.98 kB / 0.9227 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.009011/1.487, allocations: 3.643 MB / 0.9263 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of sort global known variables: time 6.51e-07/1.488, allocations: 0 / 0.9263 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01209/1.5, allocations: 1.68 MB / 0.9279 GB, free: 6.684 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.03359/1.533, allocations: 14.99 MB / 0.9425 GB, free: 7.488 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.3082/1.841, allocations: 9.272 MB / 0.9516 GB, free: 213.9 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/1.842, allocations: 0 / 0.9516 GB, free: 213.9 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.006236/1.848, allocations: 3.659 MB / 0.9552 GB, free: 213.6 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005051/1.853, allocations: 0.7617 MB / 0.9559 GB, free: 213.5 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1187/1.972, allocations: 78.61 MB / 1.033 GB, free: 144.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005868/1.977, allocations: 4.829 MB / 1.037 GB, free: 139.5 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.006485/1.984, allocations: 2.594 MB / 1.04 GB, free: 136.9 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004686/1.989, allocations: 3.057 MB / 1.043 GB, free: 133.9 MB / 0.6231 GB Notification: Performance of SimCode: time 1.362e-06/1.989, allocations: 0 / 1.043 GB, free: 133.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1692/2.158, allocations: 128 MB / 1.168 GB, free: 6.426 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 37.83/39.99, allocations: 12.56 kB / 1.168 GB, free: 6.414 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1)