Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001562/0.001566, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.104/2.104, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001159/0.001159, allocations: 94.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004642/0.0004643, allocations: 8 kB / 327.1 MB, free: 15.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09707/0.09758, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.008611/0.1063, allocations: 4.379 MB / 379 MB, free: 10.95 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005192/0.1115, allocations: 2.015 MB / 381 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001129/0.1127, allocations: 31.81 kB / 381.1 MB, free: 8.891 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008222/0.1136, allocations: 158.8 kB / 381.2 MB, free: 8.734 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001478/0.1151, allocations: 307 kB / 381.5 MB, free: 8.434 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00176/0.1169, allocations: 347.4 kB / 381.9 MB, free: 8.094 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00194/0.1189, allocations: 0.6594 MB / 382.5 MB, free: 7.434 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001021/0.1199, allocations: 421.5 kB / 382.9 MB, free: 7 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005599/0.1205, allocations: 231 kB / 383.2 MB, free: 6.773 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005156/0.1211, allocations: 258.6 kB / 383.4 MB, free: 6.52 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.1212, allocations: 32 kB / 383.4 MB, free: 6.488 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003311/0.1216, allocations: 83.84 kB / 383.5 MB, free: 6.406 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.1218, allocations: 115.5 kB / 383.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002528/0.122, allocations: 173.3 kB / 383.8 MB, free: 6.117 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001497/0.1235, allocations: 0.8806 MB / 384.7 MB, free: 5.234 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1236, allocations: 0 / 384.7 MB, free: 5.234 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.1236, allocations: 0 / 384.7 MB, free: 5.234 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.635e-05/0.1236, allocations: 0 / 384.7 MB, free: 5.234 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002075/0.1257, allocations: 0.8929 MB / 385.6 MB, free: 4.289 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.1258, allocations: 12.03 kB / 385.6 MB, free: 4.277 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002683/0.1261, allocations: 135.3 kB / 385.7 MB, free: 4.137 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001971/0.1263, allocations: 86.97 kB / 385.8 MB, free: 4.051 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.1274, allocations: 497.5 kB / 386.3 MB, free: 3.523 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.16e-05/0.1275, allocations: 70 kB / 386.4 MB, free: 3.457 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001845/0.1277, allocations: 80 kB / 386.4 MB, free: 3.379 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002257/0.1299, allocations: 0.7966 MB / 387.2 MB, free: 2.543 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.373e-05/0.13, allocations: 11.89 kB / 387.2 MB, free: 2.531 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.786e-05/0.1301, allocations: 36 kB / 387.3 MB, free: 2.496 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.84e-05/0.1302, allocations: 20 kB / 387.3 MB, free: 2.477 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001685/0.1319, allocations: 499.6 kB / 387.8 MB, free: 1.992 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.295/0.4269, allocations: 2.891 MB / 390.7 MB, free: 18.95 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008867/0.4278, allocations: 219.5 kB / 390.9 MB, free: 18.92 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000244/0.4281, allocations: 249 kB / 391.1 MB, free: 18.64 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.4281, allocations: 37.89 kB / 391.2 MB, free: 18.6 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 3.306e-06/0.4281, allocations: 2.031 kB / 391.2 MB, free: 18.6 MB / 282.7 MB Notification: Performance of matching and sorting (n=35): time 0.005411/0.4335, allocations: 1.268 MB / 392.4 MB, free: 18.05 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.4336, allocations: 58.84 kB / 392.5 MB, free: 17.99 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007223/0.4344, allocations: 302.2 kB / 392.8 MB, free: 17.88 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.528e-05/0.4344, allocations: 30.95 kB / 392.8 MB, free: 17.85 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003966/0.4349, allocations: 450.5 kB / 393.3 MB, free: 17.54 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/0.4351, allocations: 135.7 kB / 393.4 MB, free: 17.46 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.108e-05/0.4351, allocations: 8.438 kB / 393.4 MB, free: 17.46 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.4352, allocations: 331.3 kB / 393.7 MB, free: 17.14 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005025/0.4357, allocations: 110.1 kB / 393.8 MB, free: 17.14 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006022/0.4364, allocations: 249.4 kB / 394.1 MB, free: 16.98 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006244/0.437, allocations: 152.2 kB / 394.2 MB, free: 16.97 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/0.437, allocations: 5.969 kB / 394.2 MB, free: 16.97 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001654/0.4387, allocations: 442.9 kB / 394.7 MB, free: 16.79 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.946e-05/0.4388, allocations: 11.27 kB / 394.7 MB, free: 16.79 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/0.4388, allocations: 4.406 kB / 394.7 MB, free: 16.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003628/0.4392, allocations: 37.09 kB / 394.7 MB, free: 16.78 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009476/0.4402, allocations: 112.8 kB / 394.8 MB, free: 16.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005925/0.4408, allocations: 0.5509 MB / 395.4 MB, free: 16.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005575/0.4414, allocations: 17.73 kB / 395.4 MB, free: 16.22 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-05/0.4415, allocations: 22.39 kB / 395.4 MB, free: 16.22 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * Array equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0006265/0.4421, allocations: 229.7 kB / 395.6 MB, free: 16.03 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.4423, allocations: 38.2 kB / 395.7 MB, free: 16.01 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/0.4437, allocations: 321.1 kB / 396 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.4437, allocations: 8.469 kB / 396 MB, free: 15.85 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.4438, allocations: 3.594 kB / 396 MB, free: 15.85 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.4438, allocations: 1.828 kB / 396 MB, free: 15.85 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003435/0.4472, allocations: 1.024 MB / 397 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.4473, allocations: 2.422 kB / 397 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.4484, allocations: 77.03 kB / 397.1 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003361/0.4488, allocations: 39.36 kB / 397.1 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.507e-05/0.4489, allocations: 9.875 kB / 397.2 MB, free: 15.2 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004999/0.4494, allocations: 0.5503 MB / 397.7 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.4494, allocations: 6.5 kB / 397.7 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.4513, allocations: 0.6039 MB / 398.3 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001969/0.4516, allocations: 112.3 kB / 398.4 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.4517, allocations: 16.11 kB / 398.4 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003557/0.4521, allocations: 9.359 kB / 398.4 MB, free: 14.1 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.4522, allocations: 23.3 kB / 398.5 MB, free: 14.1 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.754e-05/0.4523, allocations: 10.48 kB / 398.5 MB, free: 14.1 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004966/0.4528, allocations: 207.3 kB / 398.7 MB, free: 13.98 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.82e-07/0.4528, allocations: 0 / 398.7 MB, free: 13.98 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00133/0.4541, allocations: 116.7 kB / 398.8 MB, free: 13.97 MB / 282.7 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.phi,inertia2b.w,torqueToAngle2b.phi,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 (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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002339/0.4565, allocations: 1.511 MB / 400.3 MB, free: 12.67 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001474/0.458, allocations: 311.2 kB / 400.6 MB, free: 12.57 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.423e-06/0.4581, allocations: 0 / 400.6 MB, free: 12.57 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006105/0.4587, allocations: 145.6 kB / 400.8 MB, free: 12.53 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009696/0.4597, allocations: 58.47 kB / 400.8 MB, free: 12.5 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/0.4712, allocations: 6.291 MB / 407.1 MB, free: 7.438 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000848/0.4721, allocations: 0.9349 MB / 408 MB, free: 6.719 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006522/0.4728, allocations: 248.8 kB / 408.3 MB, free: 6.527 MB / 282.7 MB Notification: Performance of SimCode: time 1.423e-06/0.4728, allocations: 0 / 408.3 MB, free: 6.527 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.89/3.363, allocations: 12.35 MB / 420.6 MB, free: 0.5078 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat