Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.FirstGrounded,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded",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.001644/0.001644, allocations: 188.9 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.057/2.057, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001205/0.001205, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003901/0.0003902, allocations: 8 kB / 327 MB, free: 15.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1134, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003357/0.1168, allocations: 1.877 MB / 376.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.1184, allocations: 0.6052 MB / 377.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.1187, allocations: 7.938 kB / 377.1 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.245e-05/0.1188, allocations: 23.84 kB / 377.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003012/0.1191, allocations: 83.75 kB / 377.2 MB, free: 12.73 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.1193, allocations: 39.95 kB / 377.3 MB, free: 12.69 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004048/0.1197, allocations: 179.6 kB / 377.4 MB, free: 12.51 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002155/0.12, allocations: 68.75 kB / 377.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002154/0.1202, allocations: 83.64 kB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001935/0.1204, allocations: 91.55 kB / 377.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.932e-05/0.1205, allocations: 12 kB / 377.7 MB, free: 12.26 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.11e-05/0.1205, allocations: 8 kB / 377.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.291e-05/0.1206, allocations: 43.83 kB / 377.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.88e-05/0.1207, allocations: 61.58 kB / 377.8 MB, free: 12.14 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002836/0.121, allocations: 183.7 kB / 378 MB, free: 11.96 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.121, allocations: 0 / 378 MB, free: 11.96 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.121, allocations: 0 / 378 MB, free: 11.96 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.121, allocations: 0 / 378 MB, free: 11.96 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001019/0.122, allocations: 482.9 kB / 378.5 MB, free: 11.44 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.1221, allocations: 12.03 kB / 378.5 MB, free: 11.43 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.432e-05/0.1222, allocations: 54.55 kB / 378.5 MB, free: 11.37 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.734e-05/0.1223, allocations: 35.61 kB / 378.6 MB, free: 11.33 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003735/0.1227, allocations: 235.4 kB / 378.8 MB, free: 11.06 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.1227, allocations: 12.44 kB / 378.8 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.518e-05/0.1228, allocations: 20 kB / 378.8 MB, free: 11.03 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005789/0.1234, allocations: 205.9 kB / 379 MB, free: 10.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.879e-05/0.1234, allocations: 7.938 kB / 379 MB, free: 10.81 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.908e-05/0.1235, allocations: 8 kB / 379 MB, free: 10.8 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.1235, allocations: 8 kB / 379 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004401/0.1239, allocations: 129.7 kB / 379.2 MB, free: 10.67 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001619/0.1256, allocations: 0.7132 MB / 379.9 MB, free: 9.898 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004848/0.1261, allocations: 154.5 kB / 380 MB, free: 9.738 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.1262, allocations: 8 kB / 380 MB, free: 9.73 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.1262, allocations: 34.86 kB / 380.1 MB, free: 9.688 MB / 282.7 MB Notification: Performance of pre-optimization done (n=20): time 3.116e-06/0.1262, allocations: 0 / 380.1 MB, free: 9.688 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.002559/0.1288, allocations: 0.8912 MB / 381 MB, free: 8.703 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.1289, allocations: 55.41 kB / 381 MB, free: 8.637 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002559/0.1292, allocations: 170.6 kB / 381.2 MB, free: 8.457 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.34e-05/0.1292, allocations: 29.7 kB / 381.2 MB, free: 8.422 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.1294, allocations: 210.7 kB / 381.4 MB, free: 8.215 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.1295, allocations: 94.64 kB / 381.5 MB, free: 8.121 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.282e-05/0.1295, allocations: 0 / 381.5 MB, free: 8.121 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.1297, allocations: 326.8 kB / 381.8 MB, free: 7.793 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.13, allocations: 59.86 kB / 381.9 MB, free: 7.734 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002527/0.1302, allocations: 104.2 kB / 382 MB, free: 7.617 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002556/0.1305, allocations: 68.64 kB / 382.1 MB, free: 7.551 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1305, allocations: 0 / 382.1 MB, free: 7.551 MB / 282.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007637/0.1313, allocations: 246.2 kB / 382.3 MB, free: 7.301 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.1313, allocations: 11.95 kB / 382.3 MB, free: 7.289 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.1314, allocations: 0 / 382.3 MB, free: 7.289 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002623/0.1316, allocations: 28.84 kB / 382.3 MB, free: 7.258 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003901/0.132, allocations: 51.91 kB / 382.4 MB, free: 7.207 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001841/0.1339, allocations: 1.382 MB / 383.8 MB, free: 5.688 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002585/0.1342, allocations: 8.312 kB / 383.8 MB, free: 5.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.845e-05/0.1342, allocations: 12 kB / 383.8 MB, free: 5.668 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002148/0.1345, allocations: 133.8 kB / 383.9 MB, free: 5.527 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.759e-05/0.1346, allocations: 27.7 kB / 384 MB, free: 5.5 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.381e-05/0.1346, allocations: 33.84 kB / 384 MB, free: 5.469 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1347, allocations: 0 / 384 MB, free: 5.469 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.1347, allocations: 8 kB / 384 MB, free: 5.461 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.1347, allocations: 0 / 384 MB, free: 5.461 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001501/0.1362, allocations: 0.6491 MB / 384.6 MB, free: 4.742 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.1362, allocations: 0 / 384.6 MB, free: 4.742 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004446/0.1367, allocations: 47.91 kB / 384.7 MB, free: 4.695 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002142/0.1369, allocations: 40.89 kB / 384.7 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.137, allocations: 8 kB / 384.7 MB, free: 4.645 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001798/0.1388, allocations: 1.382 MB / 386.1 MB, free: 3.129 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1388, allocations: 0 / 386.1 MB, free: 3.129 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.1399, allocations: 429.8 kB / 386.5 MB, free: 2.672 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.14, allocations: 96.83 kB / 386.6 MB, free: 2.559 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.1401, allocations: 4 kB / 386.6 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.1403, allocations: 12.41 kB / 386.6 MB, free: 2.543 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.5e-05/0.1404, allocations: 15.92 kB / 386.7 MB, free: 2.527 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/0.1405, allocations: 16 kB / 386.7 MB, free: 2.512 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001713/0.1406, allocations: 132.8 kB / 386.8 MB, free: 2.383 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1407, allocations: 0 / 386.8 MB, free: 2.383 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005017/0.1412, allocations: 60 kB / 386.9 MB, free: 2.324 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (21): * Single equations (assignments): 20 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001533/0.1427, allocations: 1.09 MB / 388 MB, free: 1.188 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008766/0.1436, allocations: 310.1 kB / 388.3 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1437, allocations: 4 kB / 388.3 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004982/0.1442, allocations: 211 kB / 388.5 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000506/0.1447, allocations: 45.03 kB / 388.5 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2728/0.4175, allocations: 2.15 MB / 390.7 MB, free: 19.46 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.4178, allocations: 0.7524 MB / 391.4 MB, free: 18.77 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.418, allocations: 66.14 kB / 391.5 MB, free: 18.76 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.418, allocations: 0 / 391.5 MB, free: 18.76 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.828/3.246, allocations: 4.31 MB / 395.8 MB, free: 18.58 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat does not exist to compare? outputFormat=mat