Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001545/0.001545, allocations: 193.9 kB / 16.09 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 226.5 MB / 243.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007535/0.0007534, allocations: 93.34 kB / 295.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3031/0.3031, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000277/0.0002771, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.3258, allocations: 62.96 MB / 0.516 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointSSR): time 0.03731/0.3632, allocations: 52.75 MB / 0.5675 GB, free: 15.39 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03085/0.3941, allocations: 11.71 MB / 0.5789 GB, free: 7.402 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01426/0.4084, allocations: 249.8 kB / 0.5791 GB, free: 7.363 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01203/0.4205, allocations: 2.756 MB / 0.5818 GB, free: 5.801 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02987/0.4504, allocations: 8.28 MB / 0.5899 GB, free: 13.49 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005872/0.4563, allocations: 1.123 MB / 0.591 GB, free: 12.37 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.04593/0.5022, allocations: 36.27 MB / 0.6264 GB, free: 8.047 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01226/0.5146, allocations: 7.547 MB / 0.6338 GB, free: 404 kB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004871/0.5195, allocations: 2.141 MB / 0.6359 GB, free: 14.24 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005774/0.5253, allocations: 3.494 MB / 0.6393 GB, free: 10.73 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001963/0.5273, allocations: 264 kB / 0.6396 GB, free: 10.48 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004391/0.5317, allocations: 1.478 MB / 0.641 GB, free: 8.996 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004533/0.5363, allocations: 2.891 MB / 0.6438 GB, free: 6.098 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006756/0.5431, allocations: 3.206 MB / 0.647 GB, free: 2.867 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01389/0.557, allocations: 9.613 MB / 0.6564 GB, free: 9.234 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.817e-06/0.557, allocations: 0 / 0.6564 GB, free: 9.234 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.557, allocations: 3.938 kB / 0.6564 GB, free: 9.23 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005322/0.5576, allocations: 0 / 0.6564 GB, free: 9.23 MB / 474.7 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.01857/0.5762, allocations: 6.553 MB / 0.6628 GB, free: 2.594 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.771e-05/0.5763, allocations: 12.03 kB / 0.6628 GB, free: 2.582 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004394/0.5807, allocations: 1.295 MB / 0.664 GB, free: 1.273 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02964/0.6103, allocations: 5.822 MB / 0.6697 GB, free: 11.43 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01534/0.6257, allocations: 4.822 MB / 0.6744 GB, free: 6.551 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005346/0.6263, allocations: 402 kB / 0.6748 GB, free: 6.156 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00269/0.629, allocations: 0.5502 MB / 0.6753 GB, free: 5.605 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.501/1.13, allocations: 18.83 MB / 0.6937 GB, free: 122.7 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000225/1.13, allocations: 72.41 kB / 0.6938 GB, free: 122.7 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009104/1.131, allocations: 252.2 kB / 0.694 GB, free: 122.6 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004572/1.136, allocations: 3.428 MB / 0.6974 GB, free: 122 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03452/1.17, allocations: 16.49 MB / 0.7135 GB, free: 117 MB / 490.8 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.06949/1.24, allocations: 66.75 MB / 0.7787 GB, free: 54.27 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01386/1.254, allocations: 6.259 MB / 0.7848 GB, free: 47.76 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003461/1.257, allocations: 2.818 MB / 0.7875 GB, free: 44.94 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01811/1.275, allocations: 13.81 MB / 0.801 GB, free: 30.53 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/1.276, allocations: 64.55 kB / 0.8011 GB, free: 30.46 MB / 490.8 MB Notification: Performance of pre-optimization done (n=284): time 5.681e-06/1.276, allocations: 0 / 0.8011 GB, free: 30.46 MB / 490.8 MB Notification: Performance of matching and sorting (n=345): time 0.07338/1.349, allocations: 25.24 MB / 0.8257 GB, free: 5.188 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/1.349, allocations: 188.3 kB / 0.8259 GB, free: 4.965 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007085/1.356, allocations: 5.868 MB / 0.8316 GB, free: 15.12 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0005798/1.357, allocations: 77.7 kB / 0.8317 GB, free: 15.04 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003262/1.36, allocations: 4.99 MB / 0.8366 GB, free: 9.98 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001413/1.361, allocations: 1.284 MB / 0.8378 GB, free: 8.68 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004499/1.362, allocations: 184 kB / 0.838 GB, free: 8.5 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0004645/1.362, allocations: 0.7061 MB / 0.8387 GB, free: 7.789 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004949/1.367, allocations: 3.259 MB / 0.8419 GB, free: 4.523 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008624/1.376, allocations: 8.725 MB / 0.8504 GB, free: 9.105 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01558/1.392, allocations: 13 MB / 0.8631 GB, free: 9.379 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001483/1.392, allocations: 56 kB / 0.8632 GB, free: 9.324 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.02771/1.419, allocations: 12.73 MB / 0.8756 GB, free: 12.55 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/1.42, allocations: 84 kB / 0.8757 GB, free: 12.46 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002067/1.42, allocations: 196 kB / 0.8759 GB, free: 12.27 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004243/1.424, allocations: 1.318 MB / 0.8772 GB, free: 10.95 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007011/1.431, allocations: 2.164 MB / 0.8793 GB, free: 8.785 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/1.443, allocations: 7.297 MB / 0.8864 GB, free: 1.352 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006595/1.449, allocations: 0.5033 MB / 0.8869 GB, free: 0.8477 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001487/1.451, allocations: 0.543 MB / 0.8874 GB, free: 312 kB / 0.5418 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2478/1.699, allocations: 3.445 MB / 0.8908 GB, free: 168.3 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009383/1.7, allocations: 0.525 MB / 0.8913 GB, free: 168.3 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009933/1.71, allocations: 5.402 MB / 0.8966 GB, free: 166.4 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.804e-05/1.71, allocations: 38.12 kB / 0.8966 GB, free: 166.4 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.519e-05/1.71, allocations: 7.938 kB / 0.8966 GB, free: 166.4 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.581e-05/1.71, allocations: 13.41 kB / 0.8966 GB, free: 166.4 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02463/1.734, allocations: 13.99 MB / 0.9103 GB, free: 161 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.052e-05/1.734, allocations: 14.06 kB / 0.9103 GB, free: 161 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002159/1.737, allocations: 0.4905 MB / 0.9108 GB, free: 160.9 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003232/1.74, allocations: 0.8101 MB / 0.9116 GB, free: 160.8 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003193/1.74, allocations: 74.27 kB / 0.9116 GB, free: 160.8 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008493/1.749, allocations: 5.339 MB / 0.9169 GB, free: 157.8 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-05/1.749, allocations: 18.14 kB / 0.9169 GB, free: 157.8 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01364/1.762, allocations: 8.256 MB / 0.9249 GB, free: 154.3 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001438/1.764, allocations: 0.5738 MB / 0.9255 GB, free: 154 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001446/1.765, allocations: 66.72 kB / 0.9256 GB, free: 154 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003021/1.768, allocations: 131.6 kB / 0.9257 GB, free: 154 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007551/1.769, allocations: 224.5 kB / 0.9259 GB, free: 153.9 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000227/1.769, allocations: 105.2 kB / 0.926 GB, free: 153.9 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.006027/1.775, allocations: 3.638 MB / 0.9295 GB, free: 152.7 MB / 0.5418 GB Notification: Performance of sort global known variables: time 4.71e-07/1.775, allocations: 0 / 0.9295 GB, free: 152.7 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.006909/1.782, allocations: 1.636 MB / 0.9311 GB, free: 152.5 MB / 0.5418 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01268/1.795, allocations: 9.016 MB / 0.9399 GB, free: 148.2 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.01056/1.806, allocations: 7.747 MB / 0.9475 GB, free: 144.4 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/1.806, allocations: 0 / 0.9475 GB, free: 144.4 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.003301/1.809, allocations: 2.363 MB / 0.9498 GB, free: 142.3 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01133/1.82, allocations: 0.694 MB / 0.9505 GB, free: 141.7 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08479/1.905, allocations: 58.73 MB / 1.008 GB, free: 79.94 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007081/1.912, allocations: 5.161 MB / 1.013 GB, free: 74.73 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00469/1.917, allocations: 3.397 MB / 1.016 GB, free: 71.33 MB / 0.5418 GB Notification: Performance of SimCode: time 8.82e-07/1.917, allocations: 2.406 kB / 1.016 GB, free: 71.33 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.57/12.49, allocations: 153.1 MB / 1.166 GB, free: 137.8 MB / 0.5574 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_JointSSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_JointSSR.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointSSR/JointSSR.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches