Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.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) 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(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_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.0009416/0.0009416, allocations: 98.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009121/0.0009122, allocations: 206.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003078, allocations: 4 kB / 306.7 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1157, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005493/0.1213, allocations: 4.398 MB / 362.6 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004136/0.1255, allocations: 2.03 MB / 364.6 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009771/0.1265, allocations: 31.81 kB / 364.7 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004441/0.127, allocations: 162.8 kB / 364.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008178/0.1278, allocations: 307 kB / 365.1 MB, free: 6.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.1289, allocations: 347.4 kB / 365.5 MB, free: 6.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000931/0.1298, allocations: 0.6707 MB / 366.1 MB, free: 5.805 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006322/0.1305, allocations: 421.5 kB / 366.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003733/0.1309, allocations: 239 kB / 366.8 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003223/0.1312, allocations: 258.6 kB / 367 MB, free: 4.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.38e-05/0.1313, allocations: 32 kB / 367.1 MB, free: 4.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003216/0.1316, allocations: 83.84 kB / 367.1 MB, free: 4.773 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.1317, allocations: 123.5 kB / 367.3 MB, free: 4.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.1319, allocations: 169.3 kB / 367.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009988/0.1329, allocations: 0.8884 MB / 368.3 MB, free: 3.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1329, allocations: 3.938 kB / 368.3 MB, free: 3.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1329, allocations: 0 / 368.3 MB, free: 3.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.1329, allocations: 0 / 368.3 MB, free: 3.586 MB / 302.1 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.00156/0.1345, allocations: 0.8891 MB / 369.2 MB, free: 2.645 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/0.1346, allocations: 12.03 kB / 369.2 MB, free: 2.633 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002435/0.1348, allocations: 131.3 kB / 369.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003156/0.1352, allocations: 98.95 kB / 369.4 MB, free: 2.398 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007266/0.1359, allocations: 0.4897 MB / 369.9 MB, free: 1.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.136, allocations: 62 kB / 370 MB, free: 1.812 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.1362, allocations: 87.91 kB / 370.1 MB, free: 1.727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.1377, allocations: 0.7927 MB / 370.9 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.382e-05/0.1377, allocations: 4 kB / 370.9 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-05/0.1378, allocations: 36 kB / 370.9 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.1378, allocations: 20 kB / 370.9 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.1389, allocations: 0.4918 MB / 371.4 MB, free: 352 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2843/0.4232, allocations: 2.896 MB / 374.3 MB, free: 17.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009495/0.4242, allocations: 221.2 kB / 374.5 MB, free: 17.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002562/0.4245, allocations: 253 kB / 374.8 MB, free: 17.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.4245, allocations: 37.66 kB / 374.8 MB, free: 17.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 3.366e-06/0.4245, allocations: 0 / 374.8 MB, free: 17.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.004067/0.4286, allocations: 1.262 MB / 376.1 MB, free: 16.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.4287, allocations: 62.45 kB / 376.1 MB, free: 16.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006941/0.4294, allocations: 304 kB / 376.4 MB, free: 16.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.4295, allocations: 31.11 kB / 376.5 MB, free: 16.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004827/0.43, allocations: 401.2 kB / 376.9 MB, free: 16.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/0.4302, allocations: 137.2 kB / 377 MB, free: 16.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.44e-05/0.4302, allocations: 6.531 kB / 377 MB, free: 16.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.4304, allocations: 359.2 kB / 377.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004262/0.4308, allocations: 110.2 kB / 377.5 MB, free: 15.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003674/0.4312, allocations: 249.7 kB / 377.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002885/0.4315, allocations: 148.2 kB / 377.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.4315, allocations: 1.281 kB / 377.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008927/0.4324, allocations: 458.3 kB / 378.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.4324, allocations: 6.875 kB / 378.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.4325, allocations: 6.156 kB / 378.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002776/0.4327, allocations: 39.08 kB / 378.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003723/0.4331, allocations: 112.4 kB / 378.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003175/0.4335, allocations: 0.5583 MB / 379 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003107/0.4338, allocations: 21.81 kB / 379 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.725e-05/0.4338, allocations: 21.88 kB / 379.1 MB, free: 14.83 MB / 302.1 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.0003275/0.4342, allocations: 214.8 kB / 379.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.123e-05/0.4342, allocations: 36.03 kB / 379.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006826/0.4349, allocations: 338.4 kB / 379.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.435, allocations: 2.562 kB / 379.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.435, allocations: 1.219 kB / 379.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.435, allocations: 1.969 kB / 379.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/0.4368, allocations: 1.027 MB / 380.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.4368, allocations: 1.656 kB / 380.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003574/0.4372, allocations: 86.97 kB / 380.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001921/0.4374, allocations: 29.39 kB / 380.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.996e-05/0.4374, allocations: 9.734 kB / 380.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002433/0.4377, allocations: 0.5567 MB / 381.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.4377, allocations: 4.016 kB / 381.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008594/0.4385, allocations: 0.6044 MB / 382 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.273e-05/0.4386, allocations: 107.8 kB / 382.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.121e-05/0.4387, allocations: 8.344 kB / 382.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.4389, allocations: 12.86 kB / 382.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.167e-05/0.4389, allocations: 28.5 kB / 382.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.472e-05/0.439, allocations: 10.09 kB / 382.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003036/0.4393, allocations: 209.8 kB / 382.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4393, allocations: 1.062 kB / 382.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006441/0.4399, allocations: 117.3 kB / 382.4 MB, free: 12.58 MB / 302.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.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.00125/0.4412, allocations: 1.511 MB / 383.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006727/0.4419, allocations: 315.7 kB / 384.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4419, allocations: 0 / 384.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003443/0.4422, allocations: 142.5 kB / 384.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004018/0.4427, allocations: 59.19 kB / 384.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006946/0.4496, allocations: 6.253 MB / 390.7 MB, free: 6.066 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006643/0.4503, allocations: 0.9406 MB / 391.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002151/0.4505, allocations: 43.08 kB / 391.7 MB, free: 5.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002715/0.4508, allocations: 241.8 kB / 391.9 MB, free: 5.152 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4508, allocations: 0 / 391.9 MB, free: 5.152 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02923/0.48, allocations: 8.047 MB / 400 MB, free: 2.297 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001408/0.4802, allocations: 213.7 kB / 400.2 MB, free: 2.055 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.002/2.482, allocations: 0 / 400.2 MB, free: 2.055 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat