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.0007657/0.0007657, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008252/0.0008252, allocations: 193.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246 MB, free: 10.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002393/0.0002393, allocations: 4 kB / 306.8 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1031, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005191/0.1083, allocations: 4.682 MB / 363 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003377/0.1118, allocations: 1.971 MB / 365 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007651/0.1125, allocations: 31.81 kB / 365 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003814/0.1129, allocations: 154.8 kB / 365.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003828/0.1133, allocations: 134.9 kB / 365.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008055/0.1141, allocations: 255.3 kB / 365.5 MB, free: 6.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009035/0.1151, allocations: 0.9033 MB / 366.4 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005982/0.1157, allocations: 421.5 kB / 366.8 MB, free: 5.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003449/0.116, allocations: 239 kB / 367.1 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002895/0.1163, allocations: 262.6 kB / 367.3 MB, free: 4.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.643e-05/0.1164, allocations: 32 kB / 367.4 MB, free: 4.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002392/0.1166, allocations: 83.91 kB / 367.4 MB, free: 4.574 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.1168, allocations: 119.5 kB / 367.6 MB, free: 4.457 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001455/0.1169, allocations: 173.3 kB / 367.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007698/0.1177, allocations: 0.8884 MB / 368.6 MB, free: 3.391 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1177, allocations: 0 / 368.6 MB, free: 3.391 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1177, allocations: 0 / 368.6 MB, free: 3.391 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.808e-06/0.1177, allocations: 7.938 kB / 368.6 MB, free: 3.383 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.00119/0.1189, allocations: 0.8852 MB / 369.5 MB, free: 2.445 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.119, allocations: 12.03 kB / 369.5 MB, free: 2.434 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001375/0.1191, allocations: 135.3 kB / 369.6 MB, free: 2.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002176/0.1193, allocations: 98.95 kB / 369.7 MB, free: 2.195 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006086/0.12, allocations: 497.4 kB / 370.2 MB, free: 1.672 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.411e-05/0.12, allocations: 66 kB / 370.3 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.1201, allocations: 87.89 kB / 370.4 MB, free: 1.523 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.1215, allocations: 0.8005 MB / 371.2 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.086e-05/0.1216, allocations: 7.984 kB / 371.2 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.635e-05/0.1216, allocations: 32 kB / 371.2 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.135e-05/0.1217, allocations: 24 kB / 371.2 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009203/0.1226, allocations: 499.6 kB / 371.7 MB, free: 136 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2156/0.3382, allocations: 2.903 MB / 374.6 MB, free: 17.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007505/0.339, allocations: 223.9 kB / 374.9 MB, free: 17.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002206/0.3392, allocations: 107.6 kB / 375 MB, free: 17.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001936/0.3394, allocations: 248.3 kB / 375.2 MB, free: 17.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.3395, allocations: 33.88 kB / 375.2 MB, free: 17.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.514e-06/0.3395, allocations: 4.594 kB / 375.2 MB, free: 17.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002397/0.3419, allocations: 1.266 MB / 376.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.3419, allocations: 54.62 kB / 376.6 MB, free: 16.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003654/0.3423, allocations: 305.6 kB / 376.9 MB, free: 16.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.3423, allocations: 31.05 kB / 376.9 MB, free: 16.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002317/0.3426, allocations: 402.3 kB / 377.3 MB, free: 16.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.772e-05/0.3427, allocations: 133.6 kB / 377.4 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.823e-05/0.3427, allocations: 9.844 kB / 377.4 MB, free: 16.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.661e-05/0.3428, allocations: 354.4 kB / 377.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002203/0.343, allocations: 105.6 kB / 377.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003061/0.3433, allocations: 257 kB / 378.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.3436, allocations: 147.6 kB / 378.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3436, allocations: 1.375 kB / 378.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007184/0.3443, allocations: 455.7 kB / 378.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.3444, allocations: 6.875 kB / 378.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.3444, allocations: 8.688 kB / 378.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002493/0.3446, allocations: 40.72 kB / 378.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/0.345, allocations: 111.5 kB / 378.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003056/0.3453, allocations: 0.5551 MB / 379.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001851/0.3455, allocations: 17.06 kB / 379.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.489e-05/0.3456, allocations: 24.84 kB / 379.5 MB, free: 14.67 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.0003118/0.3459, allocations: 222.4 kB / 379.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.801e-05/0.346, allocations: 37.94 kB / 379.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000594/0.3466, allocations: 332.8 kB / 380 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.3466, allocations: 3.547 kB / 380.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3466, allocations: 1.375 kB / 380.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.3466, allocations: 1.406 kB / 380.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001501/0.3481, allocations: 1.025 MB / 381.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3481, allocations: 2.938 kB / 381.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003704/0.3485, allocations: 78.42 kB / 381.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001282/0.3486, allocations: 33.94 kB / 381.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.3487, allocations: 9.562 kB / 381.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002396/0.3489, allocations: 0.5572 MB / 381.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3489, allocations: 1.406 kB / 381.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007425/0.3497, allocations: 0.5477 MB / 382.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.39e-05/0.3497, allocations: 113.1 kB / 382.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.3498, allocations: 11.66 kB / 382.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.3499, allocations: 10.06 kB / 382.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.943e-05/0.35, allocations: 24.11 kB / 382.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.3501, allocations: 18.8 kB / 382.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002371/0.3503, allocations: 209.8 kB / 382.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3503, allocations: 192 / 382.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006175/0.3509, allocations: 118 kB / 382.8 MB, free: 12.5 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.001033/0.352, allocations: 1.107 MB / 383.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006767/0.3527, allocations: 308.5 kB / 384.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3527, allocations: 2.594 kB / 384.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002577/0.3529, allocations: 141 kB / 384.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004973/0.3535, allocations: 56.75 kB / 384.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004937/0.3584, allocations: 3.411 MB / 387.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/0.3589, allocations: 0.92 MB / 388.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000207/0.3591, allocations: 50.91 kB / 388.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002532/0.3594, allocations: 244.5 kB / 389 MB, free: 8.352 MB / 302.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3594, allocations: 0 / 389 MB, free: 8.352 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02911/0.3885, allocations: 8.069 MB / 397.1 MB, free: 5.434 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001792/0.3887, allocations: 226.3 kB / 397.3 MB, free: 5.191 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.009/2.397, allocations: 1.156 kB / 397.3 MB, free: 5.191 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