Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointSSR.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.JointSSR,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001275/0.001275, allocations: 118.2 kB / 17.79 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.001331/0.001331, allocations: 206 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.471/1.471, allocations: 227.4 MB / 247 MB, free: 10.4 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.2273/0.2273, allocations: 46.12 MB / 344.4 MB, free: 11.45 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.002474/0.002475, allocations: 75.88 kB / 480.9 MB, free: 4.535 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3205, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointSSR): time 0.01775/0.3383, allocations: 16.25 MB / 0.5465 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01377/0.3521, allocations: 5.336 MB / 0.5517 GB, free: 12.1 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00331/0.3554, allocations: 99.75 kB / 0.5518 GB, free: 12 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008127/0.3636, allocations: 4.154 MB / 0.5558 GB, free: 7.832 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007468/0.3711, allocations: 2.716 MB / 0.5585 GB, free: 5.105 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003032/0.3742, allocations: 1.26 MB / 0.5597 GB, free: 3.844 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01132/0.3855, allocations: 7.738 MB / 0.5673 GB, free: 12.09 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008154/0.3937, allocations: 5.844 MB / 0.573 GB, free: 6.168 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005508/0.3993, allocations: 2.667 MB / 0.5756 GB, free: 3.492 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007046/0.4064, allocations: 3.77 MB / 0.5793 GB, free: 15.71 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002617/0.409, allocations: 0.5938 MB / 0.5798 GB, free: 15.12 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007342/0.4164, allocations: 1.748 MB / 0.5815 GB, free: 13.37 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005751/0.4222, allocations: 3.281 MB / 0.5847 GB, free: 10.08 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006821/0.4291, allocations: 3.802 MB / 0.5885 GB, free: 6.254 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01692/0.446, allocations: 12.43 MB / 0.6006 GB, free: 9.773 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.4461, allocations: 4 kB / 0.6006 GB, free: 9.77 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4461, allocations: 0 / 0.6006 GB, free: 9.77 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004326/0.4465, allocations: 4 kB / 0.6006 GB, free: 9.766 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: 2564 * Number of variables: 2564 Notification: Performance of Generate backend data structure: time 0.02073/0.4673, allocations: 8.159 MB / 0.6086 GB, free: 1.508 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/0.4673, allocations: 8.031 kB / 0.6086 GB, free: 1.5 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00387/0.4712, allocations: 1.311 MB / 0.6099 GB, free: 180 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03104/0.5023, allocations: 5.751 MB / 0.6155 GB, free: 10.41 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01197/0.5143, allocations: 4.896 MB / 0.6203 GB, free: 5.457 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004333/0.5148, allocations: 402 kB / 0.6206 GB, free: 5.062 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00246/0.5173, allocations: 0.5542 MB / 0.6212 GB, free: 4.508 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03894/0.5562, allocations: 18.83 MB / 0.6396 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002234/0.5565, allocations: 63.52 kB / 0.6396 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001229/0.5577, allocations: 251.7 kB / 0.6399 GB, free: 328 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005941/0.5637, allocations: 3.432 MB / 0.6432 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03711/0.6008, allocations: 16.51 MB / 0.6593 GB, free: 12.36 MB / 0.5138 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4026/1.003, allocations: 66.61 MB / 0.7244 GB, free: 120.4 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01571/1.019, allocations: 6.276 MB / 0.7305 GB, free: 119.1 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004551/1.024, allocations: 2.839 MB / 0.7333 GB, free: 119.1 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01951/1.043, allocations: 13.94 MB / 0.7469 GB, free: 112.8 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/1.043, allocations: 70.31 kB / 0.747 GB, free: 112.7 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=284): time 6.011e-06/1.043, allocations: 3.469 kB / 0.747 GB, free: 112.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=345): time 0.07532/1.119, allocations: 25.25 MB / 0.7716 GB, free: 95.48 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.502e-05/1.119, allocations: 192.2 kB / 0.7718 GB, free: 95.25 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006586/1.125, allocations: 5.912 MB / 0.7776 GB, free: 89.48 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005798/1.126, allocations: 76.14 kB / 0.7777 GB, free: 89.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002172/1.128, allocations: 5.186 MB / 0.7827 GB, free: 84.53 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001198/1.129, allocations: 1.339 MB / 0.784 GB, free: 83.21 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002051/1.132, allocations: 1.874 MB / 0.7859 GB, free: 81.32 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.046e-05/1.132, allocations: 305.1 kB / 0.7862 GB, free: 81.02 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003942/1.136, allocations: 3.305 MB / 0.7894 GB, free: 77.71 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005788/1.141, allocations: 8.767 MB / 0.7979 GB, free: 66.37 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01159/1.153, allocations: 13.05 MB / 0.8107 GB, free: 50.85 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001523/1.153, allocations: 52 kB / 0.8107 GB, free: 50.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.02115/1.174, allocations: 12.85 MB / 0.8233 GB, free: 37.91 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/1.174, allocations: 84 kB / 0.8234 GB, free: 37.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001638/1.175, allocations: 192 kB / 0.8236 GB, free: 37.64 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003799/1.178, allocations: 1.318 MB / 0.8248 GB, free: 36.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006306/1.185, allocations: 2.168 MB / 0.827 GB, free: 34.15 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009996/1.195, allocations: 7.856 MB / 0.8346 GB, free: 26.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006708/1.202, allocations: 0.4957 MB / 0.8351 GB, free: 25.66 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00154/1.203, allocations: 0.5467 MB / 0.8356 GB, free: 25.12 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 874 * Number of states: 0 () * Number of discrete variables: 46 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1152): * Single equations (assignments): 1145 * Array equations: 6 * 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 {(2,37,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005415/1.209, allocations: 3.444 MB / 0.839 GB, free: 21.66 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001111/1.21, allocations: 0.551 MB / 0.8395 GB, free: 21.11 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01007/1.22, allocations: 5.423 MB / 0.8448 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.052e-05/1.22, allocations: 36 kB / 0.8449 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.701e-05/1.22, allocations: 8 kB / 0.8449 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.155e-05/1.22, allocations: 19.92 kB / 0.8449 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02433/1.244, allocations: 13.94 MB / 0.8585 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.285e-05/1.244, allocations: 8 kB / 0.8585 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00209/1.246, allocations: 0.4921 MB / 0.859 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002964/1.249, allocations: 0.813 MB / 0.8598 GB, free: 88 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003928/1.25, allocations: 67.98 kB / 0.8599 GB, free: 20 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01051/1.26, allocations: 5.821 MB / 0.8655 GB, free: 10.06 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.336e-05/1.26, allocations: 15.94 kB / 0.8656 GB, free: 10.05 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01591/1.276, allocations: 8.337 MB / 0.8737 GB, free: 1.426 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001579/1.278, allocations: 0.5909 MB / 0.8743 GB, free: 0.8125 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009027/1.279, allocations: 63.98 kB / 0.8743 GB, free: 0.75 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002131/1.281, allocations: 131.9 kB / 0.8745 GB, free: 0.6211 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005307/1.282, allocations: 229 kB / 0.8747 GB, free: 412 kB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002383/1.282, allocations: 100 kB / 0.8748 GB, free: 312 kB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006457/1.288, allocations: 3.667 MB / 0.8784 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.6e-07/1.288, allocations: 3.938 kB / 0.8784 GB, free: 12.66 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008504/1.297, allocations: 1.605 MB / 0.8799 GB, free: 11.06 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 2 (j2.s,j2.v) * 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 (269): * Single equations (assignments): 262 * Array equations: 6 * 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 {(2,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0165/1.313, allocations: 9.069 MB / 0.8888 GB, free: 1.699 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01436/1.328, allocations: 7.85 MB / 0.8965 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.769e-05/1.328, allocations: 8.125 kB / 0.8965 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.004284/1.332, allocations: 2.388 MB / 0.8988 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004126/1.336, allocations: 0.7185 MB / 0.8995 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1302/1.466, allocations: 73.71 MB / 0.9715 GB, free: 4.059 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3038/1.77, allocations: 5.151 MB / 0.9765 GB, free: 271.2 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.007883/1.778, allocations: 2.968 MB / 0.9794 GB, free: 271.1 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006165/1.784, allocations: 3.323 MB / 0.9827 GB, free: 270.8 MB / 0.6856 GB Notification: Performance of SimCode: time 1.453e-06/1.784, allocations: 0 / 0.9827 GB, free: 270.8 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2292/2.014, allocations: 110.4 MB / 1.091 GB, free: 176.5 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.73/26.75, allocations: 17.16 kB / 1.091 GB, free: 176.5 MB / 0.6856 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointSSR.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointSSR.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe 2>&1)