Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 91.67 kB / 16.95 MB, free: 6.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 179.7 kB / 17.84 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 205.4 MB / 224 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006397/0.0006401, allocations: 19.98 kB / 280.9 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1194, allocations: 47.57 MB / 328.4 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002372/0.1219, allocations: 1.963 MB / 330.4 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008939/0.1228, allocations: 0.5972 MB / 331 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.1229, allocations: 11.94 kB / 331 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.123, allocations: 23.78 kB / 331 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.1232, allocations: 67.45 kB / 331.1 MB, free: 1.281 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001694/0.1233, allocations: 35.97 kB / 331.1 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002551/0.1236, allocations: 254.8 kB / 331.4 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.1238, allocations: 77.3 kB / 331.5 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.1239, allocations: 91.58 kB / 331.6 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.1241, allocations: 99.48 kB / 331.7 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.995e-05/0.1241, allocations: 12 kB / 331.7 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.106e-05/0.1241, allocations: 12 kB / 331.7 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.141e-05/0.1242, allocations: 39.83 kB / 331.7 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.339e-05/0.1243, allocations: 65.58 kB / 331.8 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001981/0.1245, allocations: 195.7 kB / 332 MB, free: 420 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1245, allocations: 0 / 332 MB, free: 420 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1245, allocations: 0 / 332 MB, free: 420 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1245, allocations: 4 kB / 332 MB, free: 416 kB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.000682/0.1252, allocations: 494.8 kB / 332.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.1252, allocations: 8.031 kB / 332.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.26e-05/0.1253, allocations: 54.55 kB / 332.5 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.726e-05/0.1253, allocations: 23.72 kB / 332.5 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002849/0.1256, allocations: 239.4 kB / 332.8 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.1257, allocations: 20.44 kB / 332.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.909e-05/0.1257, allocations: 24 kB / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003674/0.1261, allocations: 191.3 kB / 333 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.1261, allocations: 3.906 kB / 333 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.277e-05/0.1261, allocations: 12 kB / 333 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.353e-06/0.1262, allocations: 4 kB / 333 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002661/0.1264, allocations: 141.6 kB / 333.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009206/0.1274, allocations: 0.6425 MB / 333.8 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002972/0.1277, allocations: 174.5 kB / 334 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.1279, allocations: 104.8 kB / 334.1 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-05/0.1279, allocations: 7.984 kB / 334.1 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.1279, allocations: 34.56 kB / 334.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.1279, allocations: 0 / 334.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.001864/0.1298, allocations: 1.08 MB / 335.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.1299, allocations: 55.36 kB / 335.3 MB, free: 12.84 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.1301, allocations: 186.9 kB / 335.4 MB, free: 12.65 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.1301, allocations: 29.7 kB / 335.5 MB, free: 12.62 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.433e-05/0.1302, allocations: 136.7 kB / 335.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.563e-05/0.1303, allocations: 114.3 kB / 335.7 MB, free: 12.37 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.497e-05/0.1303, allocations: 11.94 kB / 335.7 MB, free: 12.36 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1304, allocations: 334.8 kB / 336.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.1306, allocations: 71.97 kB / 336.1 MB, free: 11.95 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001634/0.1307, allocations: 114.3 kB / 336.2 MB, free: 11.83 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001655/0.1309, allocations: 85.41 kB / 336.3 MB, free: 11.75 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.1309, allocations: 0 / 336.3 MB, free: 11.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004841/0.1314, allocations: 295.1 kB / 336.6 MB, free: 11.45 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.1314, allocations: 11.98 kB / 336.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1315, allocations: 3.984 kB / 336.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001648/0.1316, allocations: 40.91 kB / 336.7 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/0.1319, allocations: 59.91 kB / 336.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001437/0.1333, allocations: 1.565 MB / 338.3 MB, free: 9.629 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.1335, allocations: 16.02 kB / 338.3 MB, free: 9.613 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.1335, allocations: 11.95 kB / 338.3 MB, free: 9.602 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001349/0.1336, allocations: 137.8 kB / 338.4 MB, free: 9.457 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.506e-05/0.1337, allocations: 27.78 kB / 338.5 MB, free: 9.43 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.816e-05/0.1338, allocations: 34.64 kB / 338.5 MB, free: 9.398 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1338, allocations: 0 / 338.5 MB, free: 9.398 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.415e-06/0.1338, allocations: 4 kB / 338.5 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1338, allocations: 0 / 338.5 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.1349, allocations: 0.7781 MB / 339.3 MB, free: 8.539 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.439e-05/0.1349, allocations: 8 kB / 339.3 MB, free: 8.531 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002441/0.1351, allocations: 59.91 kB / 339.4 MB, free: 8.473 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001018/0.1352, allocations: 36.92 kB / 339.4 MB, free: 8.434 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.1353, allocations: 8 kB / 339.4 MB, free: 8.426 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.1363, allocations: 1.378 MB / 340.8 MB, free: 6.91 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1364, allocations: 0 / 340.8 MB, free: 6.91 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007089/0.1371, allocations: 494.4 kB / 341.3 MB, free: 6.398 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.784e-05/0.1371, allocations: 96.86 kB / 341.4 MB, free: 6.285 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.1372, allocations: 8 kB / 341.4 MB, free: 6.277 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.1373, allocations: 8 kB / 341.4 MB, free: 6.27 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.58e-05/0.1374, allocations: 27.92 kB / 341.4 MB, free: 6.242 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.1374, allocations: 15.94 kB / 341.4 MB, free: 6.227 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001119/0.1375, allocations: 139.5 kB / 341.6 MB, free: 6.09 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1375, allocations: 0 / 341.6 MB, free: 6.09 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003494/0.1379, allocations: 64 kB / 341.6 MB, free: 6.027 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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.0009744/0.1388, allocations: 1.021 MB / 342.6 MB, free: 4.969 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005757/0.1394, allocations: 354.5 kB / 343 MB, free: 4.609 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.1395, allocations: 4 kB / 343 MB, free: 4.605 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003197/0.1398, allocations: 234.5 kB / 343.2 MB, free: 4.363 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004472/0.1402, allocations: 56.41 kB / 343.3 MB, free: 4.309 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003096/0.1433, allocations: 1.664 MB / 344.9 MB, free: 2.578 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004559/0.1438, allocations: 0.76 MB / 345.7 MB, free: 1.793 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001293/0.144, allocations: 22.28 kB / 345.7 MB, free: 1.77 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.1441, allocations: 75.41 kB / 345.8 MB, free: 1.695 MB / 286.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1441, allocations: 0 / 345.8 MB, free: 1.695 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02398/0.1681, allocations: 4.693 MB / 350.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003123/0.1685, allocations: 203.4 kB / 350.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.048/2.217, allocations: 0 / 350.7 MB, free: 12.77 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat