Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.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.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001203/0.001203, allocations: 103.4 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001342, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2254/0.2254, allocations: 46.1 MB / 343.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 73.75 kB / 416.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1307, allocations: 62.46 MB / 479.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007799/0.1386, allocations: 5.759 MB / 485.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004661/0.1433, allocations: 2.313 MB / 487.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001372/0.1447, allocations: 39.75 kB / 487.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000867/0.1455, allocations: 178.6 kB / 487.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000874/0.1465, allocations: 154.8 kB / 487.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.1479, allocations: 403.4 kB / 488.2 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001492/0.1494, allocations: 1.044 MB / 489.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009554/0.1504, allocations: 0.5517 MB / 489.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006355/0.1511, allocations: 330.5 kB / 490.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005687/0.1517, allocations: 358.1 kB / 490.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001552/0.1518, allocations: 56 kB / 490.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003376/0.1522, allocations: 119.8 kB / 490.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002112/0.1524, allocations: 179.3 kB / 490.8 MB, free: 10.13 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000548/0.1529, allocations: 425.7 kB / 491.2 MB, free: 9.715 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001239/0.1542, allocations: 1.172 MB / 492.4 MB, free: 8.539 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1542, allocations: 0 / 492.4 MB, free: 8.539 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.1542, allocations: 0 / 492.4 MB, free: 8.539 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.199e-05/0.1543, allocations: 4 kB / 492.4 MB, free: 8.535 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002181/0.1565, allocations: 1.131 MB / 493.5 MB, free: 7.352 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.956e-05/0.1565, allocations: 8.875 kB / 493.6 MB, free: 7.344 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001956/0.1567, allocations: 139.9 kB / 493.7 MB, free: 7.199 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003324/0.1571, allocations: 111.7 kB / 493.8 MB, free: 7.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000917/0.158, allocations: 0.5706 MB / 494.4 MB, free: 6.477 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.645e-05/0.1581, allocations: 70 kB / 494.4 MB, free: 6.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.1582, allocations: 95.98 kB / 494.5 MB, free: 6.316 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.1598, allocations: 0.8853 MB / 495.4 MB, free: 5.367 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.256e-05/0.1599, allocations: 11.89 kB / 495.4 MB, free: 5.355 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.937e-05/0.1599, allocations: 40 kB / 495.5 MB, free: 5.316 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.511e-05/0.16, allocations: 24 kB / 495.5 MB, free: 5.293 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/0.1611, allocations: 0.5229 MB / 496 MB, free: 4.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003865/0.165, allocations: 3.646 MB / 499.7 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/0.1655, allocations: 230.6 kB / 499.9 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.1657, allocations: 101.3 kB / 500 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002988/0.1661, allocations: 251.3 kB / 0.4885 GB, free: 332 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.1661, allocations: 34.56 kB / 0.4885 GB, free: 288 kB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 3.276e-06/0.1661, allocations: 0 / 0.4885 GB, free: 288 kB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002512/0.1686, allocations: 1.289 MB / 0.4898 GB, free: 14.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.1687, allocations: 59.34 kB / 0.4899 GB, free: 14.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004444/0.1691, allocations: 401.8 kB / 0.4902 GB, free: 14.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.1692, allocations: 37.7 kB / 0.4903 GB, free: 14.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002921/0.1695, allocations: 474 kB / 0.4907 GB, free: 13.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.1696, allocations: 130.1 kB / 0.4909 GB, free: 13.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.1697, allocations: 106.2 kB / 0.491 GB, free: 13.67 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.1699, allocations: 358.8 kB / 0.4913 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.1701, allocations: 117.1 kB / 0.4914 GB, free: 13.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003555/0.1705, allocations: 298.3 kB / 0.4917 GB, free: 12.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006023/0.1711, allocations: 463.4 kB / 0.4921 GB, free: 12.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.1711, allocations: 3.938 kB / 0.4921 GB, free: 12.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008263/0.1719, allocations: 0.5096 MB / 0.4926 GB, free: 11.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.172, allocations: 8 kB / 0.4926 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.172, allocations: 4 kB / 0.4926 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00019/0.1722, allocations: 40.88 kB / 0.4927 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003922/0.1726, allocations: 131.8 kB / 0.4928 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004093/0.173, allocations: 0.5524 MB / 0.4934 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002173/0.1732, allocations: 19.94 kB / 0.4934 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.645e-05/0.1733, allocations: 28 kB / 0.4934 GB, free: 10.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003638/0.1737, allocations: 229.7 kB / 0.4936 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.13e-05/0.1737, allocations: 55.28 kB / 0.4937 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006249/0.1744, allocations: 330.9 kB / 0.494 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1744, allocations: 4 kB / 0.494 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.1744, allocations: 0 / 0.494 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.1744, allocations: 3.984 kB / 0.494 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.176, allocations: 1.062 MB / 0.495 GB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.176, allocations: 160 / 0.495 GB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00035/0.1763, allocations: 87.89 kB / 0.4951 GB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001406/0.1765, allocations: 36.81 kB / 0.4951 GB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.1765, allocations: 8 kB / 0.4952 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003407/0.1769, allocations: 0.5446 MB / 0.4957 GB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.283e-06/0.1769, allocations: 7.969 kB / 0.4957 GB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000787/0.1777, allocations: 0.5556 MB / 0.4962 GB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.1778, allocations: 120.5 kB / 0.4964 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/0.1779, allocations: 15.94 kB / 0.4964 GB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.178, allocations: 8 kB / 0.4964 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/0.1781, allocations: 23.91 kB / 0.4964 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.1781, allocations: 15.98 kB / 0.4964 GB, free: 7.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000301/0.1784, allocations: 271.1 kB / 0.4967 GB, free: 7.422 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1785, allocations: 0 / 0.4967 GB, free: 7.422 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005312/0.179, allocations: 132 kB / 0.4968 GB, free: 7.293 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001124/0.1801, allocations: 1.116 MB / 0.4979 GB, free: 6.129 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006341/0.1808, allocations: 333 kB / 0.4982 GB, free: 5.805 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.1808, allocations: 64 / 0.4982 GB, free: 5.805 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002523/0.181, allocations: 139.8 kB / 0.4983 GB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000514/0.1816, allocations: 69.94 kB / 0.4984 GB, free: 5.602 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006573/0.1882, allocations: 5.266 MB / 0.5035 GB, free: 56 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2082/0.3963, allocations: 0.9528 MB / 0.5045 GB, free: 41.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003099/0.3967, allocations: 61.86 kB / 0.5045 GB, free: 41.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003348/0.397, allocations: 295.1 kB / 0.5048 GB, free: 41.4 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.397, allocations: 0 / 0.5048 GB, free: 41.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04358/0.4406, allocations: 8.831 MB / 0.5134 GB, free: 40.08 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001877/0.4409, allocations: 229.6 kB / 0.5137 GB, free: 39.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.975/2.416, allocations: 0 / 0.5137 GB, free: 39.82 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches