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.0014/0.001399, allocations: 103.4 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.001553/0.001553, 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.484/1.484, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2518/0.2518, 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.002398/0.002398, allocations: 75 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1402, allocations: 62.46 MB / 480.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointSSR): time 0.0183/0.1586, allocations: 16.22 MB / 496.4 MB, free: 4.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.012/0.1706, allocations: 5.36 MB / 0.49 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002784/0.1735, allocations: 107.6 kB / 0.4901 GB, free: 15.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007867/0.1814, allocations: 4.15 MB / 0.4942 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007422/0.1888, allocations: 2.708 MB / 0.4968 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00302/0.1919, allocations: 1.27 MB / 0.4981 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.263/0.4549, allocations: 7.708 MB / 0.5056 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007893/0.4628, allocations: 5.857 MB / 0.5113 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005263/0.4681, allocations: 2.668 MB / 0.5139 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007082/0.4752, allocations: 3.766 MB / 0.5176 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002748/0.478, allocations: 0.5941 MB / 0.5182 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005498/0.4835, allocations: 1.75 MB / 0.5199 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006052/0.4896, allocations: 3.284 MB / 0.5231 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008786/0.4984, allocations: 3.796 MB / 0.5268 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01625/0.5147, allocations: 11.96 MB / 0.5385 GB, free: 3.031 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/0.5148, allocations: 0 / 0.5385 GB, free: 3.031 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5148, allocations: 3.125 kB / 0.5385 GB, free: 3.031 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005699/0.5153, allocations: 0 / 0.5385 GB, free: 3.031 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: 2564 * Number of variables: 2564 Notification: Performance of Generate backend data structure: time 0.02474/0.5401, allocations: 7.961 MB / 0.5463 GB, free: 13.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.5402, allocations: 9.719 kB / 0.5463 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004653/0.5448, allocations: 1.302 MB / 0.5475 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03276/0.5776, allocations: 5.698 MB / 0.5531 GB, free: 7.512 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01284/0.5905, allocations: 4.815 MB / 0.5578 GB, free: 2.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000539/0.5911, allocations: 406 kB / 0.5582 GB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003168/0.5943, allocations: 0.56 MB / 0.5587 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04283/0.6371, allocations: 18.83 MB / 0.5771 GB, free: 14.54 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004064/0.6376, allocations: 70.84 kB / 0.5772 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002252/0.6399, allocations: 247.5 kB / 0.5774 GB, free: 14.32 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006326/0.6462, allocations: 3.433 MB / 0.5808 GB, free: 10.94 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0426/0.6888, allocations: 16.51 MB / 0.5969 GB, free: 10.68 MB / 446.1 MB 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.1088/0.7977, allocations: 66.8 MB / 0.6622 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01782/0.8156, allocations: 6.278 MB / 0.6683 GB, free: 308 kB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005242/0.8208, allocations: 2.828 MB / 0.671 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02819/0.8491, allocations: 13.93 MB / 0.6846 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.632e-05/0.8492, allocations: 64.25 kB / 0.6847 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=284): time 5.691e-06/0.8492, allocations: 0 / 0.6847 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of matching and sorting (n=345): time 0.09257/0.9418, allocations: 24.88 MB / 0.709 GB, free: 6.023 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.9419, allocations: 185.5 kB / 0.7092 GB, free: 5.805 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2192/1.161, allocations: 5.894 MB / 0.7149 GB, free: 187.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006812/1.162, allocations: 75.73 kB / 0.715 GB, free: 187.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004491/1.166, allocations: 4.982 MB / 0.7199 GB, free: 185.4 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001876/1.168, allocations: 1.28 MB / 0.7211 GB, free: 184.4 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00345/1.172, allocations: 1.864 MB / 0.7229 GB, free: 183.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.259e-05/1.172, allocations: 306.9 kB / 0.7232 GB, free: 183.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006321/1.178, allocations: 3.299 MB / 0.7265 GB, free: 182.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01104/1.189, allocations: 8.765 MB / 0.735 GB, free: 173.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01583/1.205, allocations: 13.05 MB / 0.7478 GB, free: 162.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000347/1.205, allocations: 54.81 kB / 0.7478 GB, free: 162.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.02856/1.234, allocations: 12.83 MB / 0.7603 GB, free: 158 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003886/1.235, allocations: 93.22 kB / 0.7604 GB, free: 158 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004584/1.235, allocations: 189.3 kB / 0.7606 GB, free: 158 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004353/1.239, allocations: 1.324 MB / 0.7619 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007332/1.247, allocations: 2.169 MB / 0.764 GB, free: 157.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0113/1.258, allocations: 7.843 MB / 0.7717 GB, free: 153.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007556/1.266, allocations: 0.5013 MB / 0.7722 GB, free: 153 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001982/1.268, allocations: 0.5406 MB / 0.7727 GB, free: 152.4 MB / 0.545 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.007211/1.275, allocations: 3.445 MB / 0.7761 GB, free: 149.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00123/1.276, allocations: 0.5349 MB / 0.7766 GB, free: 148.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01019/1.286, allocations: 5.412 MB / 0.7819 GB, free: 144.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.143e-05/1.286, allocations: 41.56 kB / 0.7819 GB, free: 144.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.359e-05/1.286, allocations: 8 kB / 0.7819 GB, free: 144.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.799e-05/1.286, allocations: 15.28 kB / 0.7819 GB, free: 144.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02338/1.31, allocations: 14 MB / 0.7956 GB, free: 131.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.367e-05/1.31, allocations: 16.06 kB / 0.7956 GB, free: 131.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001956/1.312, allocations: 0.4992 MB / 0.7961 GB, free: 131.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00304/1.315, allocations: 0.8136 MB / 0.7969 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002734/1.315, allocations: 67.98 kB / 0.797 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007674/1.323, allocations: 5.813 MB / 0.8026 GB, free: 124.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.817e-06/1.323, allocations: 18.12 kB / 0.8027 GB, free: 124.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0117/1.335, allocations: 8.309 MB / 0.8108 GB, free: 115.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/1.336, allocations: 0.5562 MB / 0.8113 GB, free: 115 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006714/1.337, allocations: 71.92 kB / 0.8114 GB, free: 115 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002067/1.339, allocations: 130.8 kB / 0.8115 GB, free: 114.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004357/1.339, allocations: 225.5 kB / 0.8117 GB, free: 114.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001836/1.339, allocations: 104 kB / 0.8118 GB, free: 114.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005114/1.345, allocations: 3.663 MB / 0.8154 GB, free: 110.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.01e-07/1.345, allocations: 0 / 0.8154 GB, free: 110.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008666/1.353, allocations: 1.599 MB / 0.817 GB, free: 109.3 MB / 0.545 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.01237/1.366, allocations: 9.06 MB / 0.8258 GB, free: 99.96 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01672/1.382, allocations: 11.22 MB / 0.8368 GB, free: 88.79 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-05/1.382, allocations: 8.125 kB / 0.8368 GB, free: 88.79 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003225/1.386, allocations: 2.379 MB / 0.8391 GB, free: 86.39 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003924/1.39, allocations: 0.7111 MB / 0.8398 GB, free: 85.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1102/1.5, allocations: 87.2 MB / 0.925 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2371/1.737, allocations: 5.155 MB / 0.93 GB, free: 195.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.009817/1.747, allocations: 2.966 MB / 0.9329 GB, free: 195.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006192/1.753, allocations: 3.325 MB / 0.9361 GB, free: 195.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.132e-06/1.753, allocations: 0 / 0.9361 GB, free: 195.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1784/1.931, allocations: 116.2 MB / 1.05 GB, free: 103.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/15.26, allocations: 6 kB / 1.05 GB, free: 103.2 MB / 0.5606 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)