Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 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.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001607/0.001613, allocations: 102.8 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.001351/0.001351, 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.459/1.459, allocations: 227.4 MB / 246.8 MB, free: 10.51 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.2331/0.2331, allocations: 46.12 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.003653/0.003653, allocations: 74.77 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1572, allocations: 62.46 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008152/0.1654, allocations: 5.772 MB / 486 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004642/0.1701, allocations: 2.356 MB / 488.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009856/0.1711, allocations: 47.69 kB / 488.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006841/0.1719, allocations: 230 kB / 488.6 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007098/0.1726, allocations: 174.3 kB / 488.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001421/0.174, allocations: 470.9 kB / 489.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001704/0.1757, allocations: 1.107 MB / 490.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000931/0.1767, allocations: 0.6146 MB / 491 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005476/0.1773, allocations: 374.7 kB / 491.3 MB, free: 9.938 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004369/0.1777, allocations: 382.1 kB / 491.7 MB, free: 9.562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001247/0.1778, allocations: 96 kB / 491.8 MB, free: 9.469 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003023/0.1781, allocations: 167.8 kB / 492 MB, free: 9.305 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002058/0.1784, allocations: 207.3 kB / 492.2 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004372/0.1788, allocations: 477.6 kB / 492.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001301/0.1801, allocations: 1.242 MB / 493.9 MB, free: 7.387 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1802, allocations: 0 / 493.9 MB, free: 7.387 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1802, allocations: 0 / 493.9 MB, free: 7.387 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.542e-05/0.1802, allocations: 0 / 493.9 MB, free: 7.387 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.001645/0.1818, allocations: 1.127 MB / 495 MB, free: 6.207 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.1819, allocations: 8.031 kB / 495 MB, free: 6.199 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001587/0.182, allocations: 147.9 kB / 495.1 MB, free: 6.047 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002693/0.1823, allocations: 107.7 kB / 495.2 MB, free: 5.941 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008142/0.1831, allocations: 0.5667 MB / 495.8 MB, free: 5.332 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.743e-05/0.1832, allocations: 70 kB / 495.9 MB, free: 5.266 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.1834, allocations: 91.98 kB / 496 MB, free: 5.176 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.1848, allocations: 0.8853 MB / 496.9 MB, free: 4.227 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.107e-05/0.1849, allocations: 15.89 kB / 496.9 MB, free: 4.211 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.356e-05/0.1849, allocations: 39.94 kB / 496.9 MB, free: 4.172 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.436e-05/0.185, allocations: 24 kB / 496.9 MB, free: 4.148 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.186, allocations: 0.5191 MB / 497.5 MB, free: 3.629 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003936/0.1899, allocations: 3.654 MB / 0.4894 GB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006026/0.1906, allocations: 221.7 kB / 0.4896 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.1908, allocations: 101.3 kB / 0.4897 GB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003295/0.1911, allocations: 247.3 kB / 0.4899 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.1911, allocations: 42.55 kB / 0.4899 GB, free: 15.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.884e-06/0.1911, allocations: 0 / 0.4899 GB, free: 15.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.002547/0.1937, allocations: 1.292 MB / 0.4912 GB, free: 13.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.1938, allocations: 59.34 kB / 0.4913 GB, free: 13.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004911/0.1943, allocations: 409.8 kB / 0.4917 GB, free: 13.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.1943, allocations: 29.7 kB / 0.4917 GB, free: 13.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003358/0.1946, allocations: 474.1 kB / 0.4921 GB, free: 12.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.1948, allocations: 138 kB / 0.4923 GB, free: 12.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.1949, allocations: 98.16 kB / 0.4924 GB, free: 12.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.1951, allocations: 358.8 kB / 0.4927 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/0.1953, allocations: 113.1 kB / 0.4928 GB, free: 12.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003791/0.1957, allocations: 310.2 kB / 0.4931 GB, free: 11.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006374/0.1964, allocations: 463.4 kB / 0.4936 GB, free: 11.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1964, allocations: 4 kB / 0.4936 GB, free: 11.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008471/0.1972, allocations: 0.5093 MB / 0.4941 GB, free: 10.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.1973, allocations: 4 kB / 0.4941 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.1973, allocations: 8 kB / 0.4941 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001938/0.1975, allocations: 36.84 kB / 0.4941 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003769/0.1979, allocations: 131.7 kB / 0.4942 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000448/0.1983, allocations: 0.5605 MB / 0.4948 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/0.1985, allocations: 16 kB / 0.4948 GB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/0.1986, allocations: 35.98 kB / 0.4948 GB, free: 9.797 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.0003058/0.1989, allocations: 225.6 kB / 0.495 GB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.623e-05/0.199, allocations: 55.28 kB / 0.4951 GB, free: 9.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006129/0.1996, allocations: 331 kB / 0.4954 GB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.1996, allocations: 4 kB / 0.4954 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1996, allocations: 0 / 0.4954 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.619e-06/0.1996, allocations: 8.016 kB / 0.4954 GB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001453/0.2011, allocations: 1.055 MB / 0.4964 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2011, allocations: 4 kB / 0.4964 GB, free: 8.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003399/0.2015, allocations: 79.89 kB / 0.4965 GB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001247/0.2016, allocations: 36.78 kB / 0.4966 GB, free: 7.914 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/0.2016, allocations: 12 kB / 0.4966 GB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003622/0.202, allocations: 0.5486 MB / 0.4971 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.202, allocations: 0 / 0.4971 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007988/0.2028, allocations: 0.5672 MB / 0.4977 GB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.265e-05/0.2029, allocations: 112.5 kB / 0.4978 GB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.038e-05/0.203, allocations: 8 kB / 0.4978 GB, free: 6.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.2031, allocations: 8 kB / 0.4978 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.941e-05/0.2032, allocations: 31.89 kB / 0.4978 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.562e-05/0.2032, allocations: 20.19 kB / 0.4978 GB, free: 6.527 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002951/0.2035, allocations: 271.1 kB / 0.4981 GB, free: 6.266 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2035, allocations: 7.875 kB / 0.4981 GB, free: 6.258 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005165/0.2041, allocations: 124 kB / 0.4982 GB, free: 6.137 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.001186/0.2053, allocations: 1.1 MB / 0.4993 GB, free: 4.988 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007074/0.206, allocations: 355.5 kB / 0.4996 GB, free: 4.641 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.206, allocations: 4 kB / 0.4996 GB, free: 4.637 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003078/0.2063, allocations: 141.3 kB / 0.4998 GB, free: 4.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000518/0.2068, allocations: 82.98 kB / 0.4998 GB, free: 4.426 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1955/0.4023, allocations: 4.887 MB / 0.5046 GB, free: 40.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005423/0.4029, allocations: 0.961 MB / 0.5056 GB, free: 39.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002525/0.4032, allocations: 58.72 kB / 0.5056 GB, free: 39.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003129/0.4035, allocations: 294.3 kB / 0.5059 GB, free: 39.89 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4035, allocations: 0.9375 kB / 0.5059 GB, free: 39.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03961/0.4431, allocations: 9.166 MB / 0.5149 GB, free: 38.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.39, allocations: 6.469 kB / 0.5149 GB, free: 38.3 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1)