Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 221.3 MB / 235.5 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000992/0.0009921, allocations: 92.05 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.458e-05/3.489e-05, allocations: 4 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1093, allocations: 50.41 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3575/0.4668, allocations: 82.26 MB / 476.6 MB, free: 5.188 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.4671, allocations: 75.95 kB / 476.7 MB, free: 5.113 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03131/0.4984, allocations: 11.93 MB / 488.6 MB, free: 9.188 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4985, allocations: 3.938 kB / 488.6 MB, free: 9.184 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.532e-05/0.4986, allocations: 20 kB / 488.6 MB, free: 9.164 MB / 362.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.001693/0.5003, allocations: 0.8418 MB / 489.5 MB, free: 8.273 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.5003, allocations: 8.031 kB / 489.5 MB, free: 8.266 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002132/0.5005, allocations: 131.3 kB / 489.6 MB, free: 8.129 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001713/0.5007, allocations: 86.97 kB / 489.7 MB, free: 8.043 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007552/0.5015, allocations: 0.5013 MB / 490.2 MB, free: 7.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.018e-05/0.5016, allocations: 70 kB / 490.3 MB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.5017, allocations: 87.91 kB / 490.3 MB, free: 7.348 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.5032, allocations: 0.7733 MB / 491.1 MB, free: 6.535 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.006e-05/0.5033, allocations: 4 kB / 491.1 MB, free: 6.531 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.274e-05/0.5034, allocations: 36 kB / 491.2 MB, free: 6.496 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.233e-05/0.5034, allocations: 23.98 kB / 491.2 MB, free: 6.473 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009925/0.5044, allocations: 467.8 kB / 491.6 MB, free: 6.016 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003467/0.5079, allocations: 2.883 MB / 494.5 MB, free: 3.004 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005282/0.5084, allocations: 226.4 kB / 494.7 MB, free: 2.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.5086, allocations: 93.36 kB / 494.8 MB, free: 2.676 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002309/0.5088, allocations: 251.3 kB / 495.1 MB, free: 2.375 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.5089, allocations: 35.06 kB / 495.1 MB, free: 2.332 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 2.465e-06/0.5089, allocations: 0 / 495.1 MB, free: 2.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.002125/0.511, allocations: 1.157 MB / 496.3 MB, free: 1.074 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.5111, allocations: 55.41 kB / 496.3 MB, free: 1.008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003008/0.5114, allocations: 270.8 kB / 496.6 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.5114, allocations: 29.7 kB / 496.6 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002293/0.5116, allocations: 394.6 kB / 497 MB, free: 312 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.63e-05/0.5117, allocations: 142 kB / 497.1 MB, free: 168 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.56e-05/0.5118, allocations: 11.94 kB / 497.2 MB, free: 156 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.5119, allocations: 350.8 kB / 497.5 MB, free: 15.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.5121, allocations: 93.12 kB / 497.6 MB, free: 15.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.5124, allocations: 242.9 kB / 497.8 MB, free: 15.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002345/0.5126, allocations: 147.7 kB / 498 MB, free: 15.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.5126, allocations: 0 / 498 MB, free: 15.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000655/0.5133, allocations: 449.1 kB / 498.4 MB, free: 14.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.5133, allocations: 9.406 kB / 498.4 MB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.5133, allocations: 4 kB / 498.4 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001935/0.5135, allocations: 36.84 kB / 498.5 MB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003581/0.5139, allocations: 107.8 kB / 498.6 MB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003475/0.5143, allocations: 0.5605 MB / 499.1 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.5145, allocations: 20 kB / 499.1 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.294e-05/0.5145, allocations: 20 kB / 499.2 MB, free: 14.04 MB / 378.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 () * 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.0001037/0.5146, allocations: 132.8 kB / 499.3 MB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.859e-05/0.5147, allocations: 31.62 kB / 499.3 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005326/0.5152, allocations: 314.3 kB / 499.6 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.5152, allocations: 7.984 kB / 499.6 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.5153, allocations: 0 / 499.6 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.5153, allocations: 0 / 499.6 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00145/0.5167, allocations: 1.003 MB / 0.4889 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.5167, allocations: 7.938 kB / 0.4889 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003537/0.5171, allocations: 83.84 kB / 0.489 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001247/0.5172, allocations: 28.84 kB / 0.489 GB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.937e-05/0.5173, allocations: 12 kB / 0.489 GB, free: 12.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002925/0.5176, allocations: 0.5487 MB / 0.4896 GB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.5176, allocations: 3.938 kB / 0.4896 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006911/0.5183, allocations: 0.5954 MB / 0.4902 GB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.814e-05/0.5184, allocations: 100.7 kB / 0.4902 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.794e-05/0.5184, allocations: 8 kB / 0.4903 GB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000153/0.5186, allocations: 16 kB / 0.4903 GB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.612e-05/0.5187, allocations: 19.97 kB / 0.4903 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.5187, allocations: 19.98 kB / 0.4903 GB, free: 10.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001975/0.5189, allocations: 210.1 kB / 0.4905 GB, free: 10.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5189, allocations: 0 / 0.4905 GB, free: 10.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005101/0.5194, allocations: 123.9 kB / 0.4906 GB, free: 10.59 MB / 378.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 () * 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.001156/0.5206, allocations: 1.488 MB / 0.4921 GB, free: 9.035 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000566/0.5212, allocations: 289 kB / 0.4924 GB, free: 8.754 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5212, allocations: 4.062 kB / 0.4924 GB, free: 8.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002379/0.5214, allocations: 133.1 kB / 0.4925 GB, free: 8.621 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003979/0.5218, allocations: 61.11 kB / 0.4925 GB, free: 8.562 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/0.5243, allocations: 1.493 MB / 0.494 GB, free: 7.012 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.5248, allocations: 0.9405 MB / 0.4949 GB, free: 6.047 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001964/0.525, allocations: 50.95 kB / 0.495 GB, free: 6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002685/0.5253, allocations: 239.4 kB / 0.4952 GB, free: 5.766 MB / 378.7 MB Notification: Performance of SimCode: time 7.32e-07/0.5253, allocations: 0 / 0.4952 GB, free: 5.766 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.55, allocations: 8.1 MB / 0.5031 GB, free: 13.84 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001791/0.5502, allocations: 187.3 kB / 0.5033 GB, free: 13.61 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.196/2.746, allocations: 0 / 0.5033 GB, free: 13.61 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat