Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00131/0.00131, allocations: 121.2 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001347, allocations: 206.6 kB / 21.45 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 230.4 MB / 254.7 MB, free: 14.85 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.234/0.234, allocations: 46.93 MB / 357.7 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] 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.SphericalSpherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "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.002272/0.002272, allocations: 79.86 kB / 0.4916 GB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1436, allocations: 66.04 MB / 0.5561 GB, free: 5.594 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01445/0.158, allocations: 12.08 MB / 0.5679 GB, free: 9.457 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009478/0.1675, allocations: 4.341 MB / 0.5722 GB, free: 5.098 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002459/0.17, allocations: 87.56 kB / 0.5723 GB, free: 5.012 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00575/0.1757, allocations: 2.768 MB / 0.575 GB, free: 2.234 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005691/0.1814, allocations: 2.035 MB / 0.577 GB, free: 196 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00231/0.1837, allocations: 0.9124 MB / 0.5778 GB, free: 15.28 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.008835/0.1925, allocations: 5.665 MB / 0.5834 GB, free: 9.602 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004198/0.1967, allocations: 2.89 MB / 0.5862 GB, free: 6.664 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003448/0.2002, allocations: 1.744 MB / 0.5879 GB, free: 4.914 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004843/0.205, allocations: 2.718 MB / 0.5906 GB, free: 2.188 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001363/0.2064, allocations: 384 kB / 0.5909 GB, free: 1.812 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00306/0.2095, allocations: 1.432 MB / 0.5923 GB, free: 388 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.3085/0.5179, allocations: 2.248 MB / 0.5945 GB, free: 11.43 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004358/0.5223, allocations: 2.491 MB / 0.5969 GB, free: 10.69 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01396/0.5362, allocations: 8.016 MB / 0.6048 GB, free: 9.508 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.428e-06/0.5363, allocations: 4.062 kB / 0.6048 GB, free: 9.508 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.594e-06/0.5363, allocations: 0 / 0.6048 GB, free: 9.508 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003404/0.5366, allocations: 0.9375 kB / 0.6048 GB, free: 9.508 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.02132/0.5579, allocations: 5.808 MB / 0.6105 GB, free: 7.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.558, allocations: 9.656 kB / 0.6105 GB, free: 7.25 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00268/0.5606, allocations: 0.8031 MB / 0.6112 GB, free: 7.164 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0397/0.6003, allocations: 5.985 MB / 0.6171 GB, free: 6.758 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01002/0.6104, allocations: 3.871 MB / 0.6209 GB, free: 4.789 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/0.6106, allocations: 244.9 kB / 0.6211 GB, free: 4.711 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001718/0.6123, allocations: 340.7 kB / 0.6214 GB, free: 4.621 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02119/0.6335, allocations: 10.78 MB / 0.632 GB, free: 14.19 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001729/0.6336, allocations: 54.97 kB / 0.632 GB, free: 14.18 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006012/0.6342, allocations: 151.4 kB / 0.6321 GB, free: 14.11 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003212/0.6375, allocations: 1.995 MB / 0.6341 GB, free: 13.37 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02125/0.6587, allocations: 9.235 MB / 0.6431 GB, free: 5.961 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06342/0.7221, allocations: 40.9 MB / 0.6831 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01169/0.7338, allocations: 4.044 MB / 0.687 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002956/0.7368, allocations: 1.74 MB / 0.6887 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01412/0.7509, allocations: 7.505 MB / 0.696 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.132e-05/0.7509, allocations: 55.55 kB / 0.6961 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 8.436e-06/0.7509, allocations: 3.984 kB / 0.6961 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1782/0.9291, allocations: 40.84 MB / 0.736 GB, free: 5.879 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.9293, allocations: 205.9 kB / 0.7362 GB, free: 5.633 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009162/0.9384, allocations: 4.333 MB / 0.7404 GB, free: 1.277 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008594/0.9393, allocations: 64.36 kB / 0.7405 GB, free: 1.211 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003451/0.9427, allocations: 3.34 MB / 0.7437 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001622/0.9444, allocations: 0.9095 MB / 0.7446 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003128/0.9475, allocations: 1.294 MB / 0.7459 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.9476, allocations: 301.1 kB / 0.7462 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006437/0.9541, allocations: 3.495 MB / 0.7496 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.011/0.9651, allocations: 7.103 MB / 0.7565 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01695/0.982, allocations: 11.38 MB / 0.7676 GB, free: 2.414 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001202/0.9821, allocations: 40 kB / 0.7677 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.04527/1.027, allocations: 15.68 MB / 0.783 GB, free: 2.898 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/1.028, allocations: 63.94 kB / 0.783 GB, free: 2.836 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002014/1.028, allocations: 125.6 kB / 0.7832 GB, free: 2.715 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02617/1.054, allocations: 6.057 MB / 0.7891 GB, free: 12.65 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005677/1.06, allocations: 1.435 MB / 0.7905 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04268/1.102, allocations: 27.15 MB / 0.817 GB, free: 15.78 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006335/1.109, allocations: 403.5 kB / 0.8174 GB, free: 15.39 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001509/1.11, allocations: 372 kB / 0.8177 GB, free: 15.02 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (741): * Single equations (assignments): 736 * Array equations: 3 * 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 {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006202/1.116, allocations: 2.223 MB / 0.8199 GB, free: 12.79 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001193/1.117, allocations: 417.2 kB / 0.8203 GB, free: 12.38 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03489/1.152, allocations: 11.02 MB / 0.8311 GB, free: 1.332 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-05/1.152, allocations: 24 kB / 0.8311 GB, free: 1.309 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-05/1.152, allocations: 15.98 kB / 0.8311 GB, free: 1.293 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-05/1.153, allocations: 7.969 kB / 0.8311 GB, free: 1.285 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3423/1.495, allocations: 20.44 MB / 0.8511 GB, free: 215.8 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.361e-05/1.495, allocations: 5.531 kB / 0.8511 GB, free: 215.8 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002283/1.497, allocations: 384.9 kB / 0.8514 GB, free: 215.7 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02131/1.518, allocations: 5.143 MB / 0.8565 GB, free: 215 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006372/1.519, allocations: 45.56 kB / 0.8565 GB, free: 214.9 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02591/1.545, allocations: 22.26 MB / 0.8782 GB, free: 200.3 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/1.545, allocations: 8 kB / 0.8782 GB, free: 200.3 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03075/1.576, allocations: 14.28 MB / 0.8922 GB, free: 186.2 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00152/1.577, allocations: 477.1 kB / 0.8926 GB, free: 186 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00147/1.579, allocations: 44 kB / 0.8927 GB, free: 185.9 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003628/1.582, allocations: 177.5 kB / 0.8929 GB, free: 185.8 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001103/1.584, allocations: 153.9 kB / 0.893 GB, free: 185.6 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000302/1.584, allocations: 67.86 kB / 0.8931 GB, free: 185.5 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.005508/1.589, allocations: 2.726 MB / 0.8957 GB, free: 182.8 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.1e-07/1.589, allocations: 0 / 0.8957 GB, free: 182.8 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.007868/1.597, allocations: 1.315 MB / 0.897 GB, free: 181.5 MB / 0.6387 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03/1.627, allocations: 14.92 MB / 0.9116 GB, free: 166.7 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.01141/1.639, allocations: 7.805 MB / 0.9192 GB, free: 158.9 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/1.639, allocations: 0 / 0.9192 GB, free: 158.9 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.004303/1.643, allocations: 2.951 MB / 0.9221 GB, free: 156 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004954/1.648, allocations: 0.541 MB / 0.9226 GB, free: 155.5 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1249/1.773, allocations: 66.98 MB / 0.988 GB, free: 82.69 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004597/1.777, allocations: 3.511 MB / 0.9915 GB, free: 79.16 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.004514/1.782, allocations: 1.961 MB / 0.9934 GB, free: 77.19 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003546/1.785, allocations: 2.073 MB / 0.9954 GB, free: 75.12 MB / 0.6387 GB Notification: Performance of SimCode: time 1.213e-06/1.785, allocations: 0 / 0.9954 GB, free: 75.12 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4869/2.272, allocations: 106 MB / 1.099 GB, free: 220.9 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.66/27.93, allocations: 11.16 kB / 1.099 GB, free: 220.9 MB / 0.6544 GB " [Timeout remaining time 632] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 31.17625519167632] Failed to read output from testmodel.py, exit status != 0: ['time', 'j1.phi', 'j1.w'] 28.068922419101 28.090334334 27.550022791 Calling exit ...