Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_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.001218/0.001218, allocations: 117.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001394/0.001394, allocations: 204.6 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.389/1.389, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.207/0.207, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 71.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3365, allocations: 62.45 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01721/0.3537, allocations: 15.97 MB / 0.5461 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01151/0.3653, allocations: 5.461 MB / 0.5514 GB, free: 12.28 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00332/0.3686, allocations: 107.7 kB / 0.5515 GB, free: 12.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009947/0.3786, allocations: 5.117 MB / 0.5565 GB, free: 7.043 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009217/0.3879, allocations: 2.665 MB / 0.5591 GB, free: 4.367 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004028/0.392, allocations: 1.388 MB / 0.5605 GB, free: 2.977 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01413/0.4061, allocations: 8.242 MB / 0.5685 GB, free: 10.72 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009883/0.416, allocations: 7.021 MB / 0.5754 GB, free: 3.609 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005564/0.4216, allocations: 2.761 MB / 0.5781 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006797/0.4285, allocations: 3.751 MB / 0.5818 GB, free: 13.08 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002795/0.4313, allocations: 0.6367 MB / 0.5824 GB, free: 12.44 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005171/0.4365, allocations: 1.783 MB / 0.5841 GB, free: 10.66 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005428/0.442, allocations: 3.359 MB / 0.5874 GB, free: 7.289 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00811/0.4501, allocations: 3.78 MB / 0.5911 GB, free: 3.488 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01863/0.4688, allocations: 12.18 MB / 0.603 GB, free: 7.258 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.246e-05/0.4688, allocations: 4 kB / 0.603 GB, free: 7.254 MB / 462.1 MB Notification: Performance of FrontEnd: time 4.408e-06/0.4689, allocations: 4 kB / 0.603 GB, free: 7.25 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005004/0.4694, allocations: 0 / 0.603 GB, free: 7.25 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.02391/0.4933, allocations: 8.374 MB / 0.6112 GB, free: 14.78 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.4934, allocations: 12.03 kB / 0.6112 GB, free: 14.77 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003726/0.4971, allocations: 1.148 MB / 0.6123 GB, free: 13.61 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05199/0.5491, allocations: 8.41 MB / 0.6205 GB, free: 5.184 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01306/0.5622, allocations: 5.899 MB / 0.6263 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003691/0.5626, allocations: 386 kB / 0.6266 GB, free: 14.83 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001935/0.5646, allocations: 0.5075 MB / 0.6271 GB, free: 14.32 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02981/0.5944, allocations: 15.41 MB / 0.6422 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002268/0.5947, allocations: 75.45 kB / 0.6423 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007747/0.5955, allocations: 231.8 kB / 0.6425 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003617/0.5991, allocations: 2.54 MB / 0.645 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02668/0.6258, allocations: 12.88 MB / 0.6576 GB, free: 14.26 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08322/0.709, allocations: 57.03 MB / 0.7132 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.309/1.018, allocations: 6.304 MB / 0.7194 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004171/1.022, allocations: 3.312 MB / 0.7226 GB, free: 160 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01513/1.037, allocations: 11.39 MB / 0.7338 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/1.038, allocations: 59.81 kB / 0.7338 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 4.719e-06/1.038, allocations: 2.25 kB / 0.7338 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=338): time 0.1172/1.155, allocations: 39.86 MB / 0.7727 GB, free: 122.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.463e-05/1.155, allocations: 243.8 kB / 0.773 GB, free: 122.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006634/1.162, allocations: 5.746 MB / 0.7786 GB, free: 116.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007724/1.162, allocations: 85.64 kB / 0.7787 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002023/1.164, allocations: 4.607 MB / 0.7832 GB, free: 112.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001347/1.166, allocations: 1.295 MB / 0.7844 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001972/1.168, allocations: 1.632 MB / 0.786 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.446e-05/1.168, allocations: 305.1 kB / 0.7863 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004101/1.172, allocations: 3.772 MB / 0.79 GB, free: 105.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005424/1.177, allocations: 8.31 MB / 0.7981 GB, free: 94.62 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01223/1.19, allocations: 13 MB / 0.8108 GB, free: 79.37 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001567/1.19, allocations: 51.94 kB / 0.8109 GB, free: 79.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02702/1.217, allocations: 15.5 MB / 0.826 GB, free: 63.77 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/1.217, allocations: 72 kB / 0.8261 GB, free: 63.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001595/1.217, allocations: 156 kB / 0.8262 GB, free: 63.55 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.012/1.229, allocations: 4.103 MB / 0.8302 GB, free: 59.44 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005344/1.235, allocations: 1.797 MB / 0.832 GB, free: 57.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02381/1.258, allocations: 20.93 MB / 0.8524 GB, free: 36.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006282/1.265, allocations: 0.4951 MB / 0.8529 GB, free: 36.08 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001334/1.266, allocations: 464 kB / 0.8533 GB, free: 35.62 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.004853/1.271, allocations: 3.122 MB / 0.8564 GB, free: 32.49 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00116/1.272, allocations: 0.551 MB / 0.8569 GB, free: 31.93 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01718/1.289, allocations: 9.617 MB / 0.8663 GB, free: 22.25 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-05/1.289, allocations: 36 kB / 0.8664 GB, free: 22.21 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.63e-05/1.289, allocations: 16 kB / 0.8664 GB, free: 22.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.979e-05/1.289, allocations: 15.94 kB / 0.8664 GB, free: 22.18 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03334/1.323, allocations: 19.63 MB / 0.8856 GB, free: 2.395 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.093e-05/1.323, allocations: 12.12 kB / 0.8856 GB, free: 2.383 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0021/1.325, allocations: 499.2 kB / 0.886 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01137/1.336, allocations: 3.649 MB / 0.8896 GB, free: 14.24 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005913/1.337, allocations: 64 kB / 0.8897 GB, free: 14.18 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02727/1.364, allocations: 18.43 MB / 0.9077 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.912e-05/1.364, allocations: 11.94 kB / 0.9077 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02654/1.391, allocations: 14.24 MB / 0.9216 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002012/1.393, allocations: 0.5987 MB / 0.9222 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00186/1.395, allocations: 60 kB / 0.9222 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003263/1.398, allocations: 227.7 kB / 0.9224 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008391/1.399, allocations: 226.2 kB / 0.9227 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002621/1.399, allocations: 88 kB / 0.9227 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.006218/1.405, allocations: 3.643 MB / 0.9263 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.71e-07/1.405, allocations: 0 / 0.9263 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01055/1.416, allocations: 1.683 MB / 0.928 GB, free: 6.652 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.02814/1.444, allocations: 14.99 MB / 0.9426 GB, free: 7.461 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.2919/1.736, allocations: 9.274 MB / 0.9516 GB, free: 214.2 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.319e-05/1.736, allocations: 2.25 kB / 0.9516 GB, free: 214.2 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005406/1.742, allocations: 3.658 MB / 0.9552 GB, free: 214 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004483/1.746, allocations: 0.7806 MB / 0.956 GB, free: 213.8 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1137/1.86, allocations: 78.61 MB / 1.033 GB, free: 144.6 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00547/1.865, allocations: 4.822 MB / 1.037 GB, free: 139.7 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005461/1.871, allocations: 2.59 MB / 1.04 GB, free: 137.1 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004146/1.875, allocations: 3.065 MB / 1.043 GB, free: 134 MB / 0.6231 GB Notification: Performance of SimCode: time 5.11e-07/1.875, allocations: 0 / 1.043 GB, free: 134 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1726/2.048, allocations: 128 MB / 1.168 GB, free: 6.578 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.11/41.16, allocations: 4.656 kB / 1.168 GB, free: 6.574 MB / 0.6231 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches