Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",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.001596/0.001596, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 221.5 MB / 230.3 MB, free: 7.555 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.0009036/0.0009036, allocations: 87.62 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.074e-05/2.093e-05, allocations: 0 / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1094, allocations: 50.43 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3539/0.4633, allocations: 77.68 MB / 465.2 MB, free: 1.008 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/0.4635, allocations: 67.95 kB / 465.3 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01126/0.4748, allocations: 4.123 MB / 469.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4749, allocations: 0 / 469.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.4749, allocations: 8 kB / 469.4 MB, free: 12.81 MB / 346.7 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.0006259/0.4755, allocations: 475 kB / 469.9 MB, free: 12.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.4756, allocations: 15.97 kB / 469.9 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.45e-05/0.4757, allocations: 23.72 kB / 469.9 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002968/0.476, allocations: 231.3 kB / 470.2 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.476, allocations: 8 kB / 470.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.943e-05/0.476, allocations: 16 kB / 470.2 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002258/0.4763, allocations: 116.8 kB / 470.3 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002834/0.4766, allocations: 150.5 kB / 470.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.4766, allocations: 0 / 470.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.4766, allocations: 3.953 kB / 470.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.4766, allocations: 4 kB / 470.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008853/0.4775, allocations: 0.568 MB / 471 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002475/0.4778, allocations: 166.3 kB / 471.2 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.4779, allocations: 89.55 kB / 471.3 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.478, allocations: 4 kB / 471.3 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.478, allocations: 34.78 kB / 471.3 MB, free: 10.78 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 4.819e-06/0.478, allocations: 0 / 471.3 MB, free: 10.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001518/0.4795, allocations: 0.906 MB / 472.2 MB, free: 9.781 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/0.4796, allocations: 55.41 kB / 472.3 MB, free: 9.715 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.4797, allocations: 146.7 kB / 472.4 MB, free: 9.562 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.4798, allocations: 25.7 kB / 472.4 MB, free: 9.531 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.131e-05/0.4798, allocations: 140.3 kB / 472.6 MB, free: 9.391 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.257e-05/0.4799, allocations: 102.4 kB / 472.7 MB, free: 9.289 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.127e-06/0.4799, allocations: 4 kB / 472.7 MB, free: 9.285 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.4801, allocations: 338.8 kB / 473 MB, free: 8.945 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.414e-05/0.4802, allocations: 52 kB / 473.1 MB, free: 8.895 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.4803, allocations: 91.22 kB / 473.1 MB, free: 8.797 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001286/0.4805, allocations: 73.38 kB / 473.2 MB, free: 8.727 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.4805, allocations: 0 / 473.2 MB, free: 8.727 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003887/0.4809, allocations: 251.5 kB / 473.5 MB, free: 8.473 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.4809, allocations: 13.39 kB / 473.5 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.4809, allocations: 3.938 kB / 473.5 MB, free: 8.457 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001609/0.4811, allocations: 40.84 kB / 473.5 MB, free: 8.414 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002541/0.4813, allocations: 63.91 kB / 473.6 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001448/0.4828, allocations: 1.509 MB / 475.1 MB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.4829, allocations: 4.031 kB / 475.1 MB, free: 6.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.4829, allocations: 12 kB / 475.1 MB, free: 6.715 MB / 346.7 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 () * 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.0001557/0.4831, allocations: 109 kB / 475.2 MB, free: 6.602 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003869/0.4835, allocations: 226.1 kB / 475.4 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.106e-05/0.4836, allocations: 19.81 kB / 475.4 MB, free: 6.352 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.067e-05/0.4836, allocations: 31.38 kB / 475.5 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.4836, allocations: 4 kB / 475.5 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.4836, allocations: 0 / 475.5 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.4836, allocations: 0 / 475.5 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009893/0.4846, allocations: 0.7086 MB / 476.2 MB, free: 5.547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.4847, allocations: 4.094 kB / 476.2 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002772/0.4849, allocations: 56.16 kB / 476.3 MB, free: 5.488 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001086/0.4851, allocations: 36.84 kB / 476.3 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.4851, allocations: 0 / 476.3 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/0.4863, allocations: 1.323 MB / 477.6 MB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.4863, allocations: 3.938 kB / 477.6 MB, free: 4 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006319/0.4869, allocations: 480.8 kB / 478.1 MB, free: 3.484 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.937e-05/0.487, allocations: 92.92 kB / 478.2 MB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.738e-05/0.4871, allocations: 8.219 kB / 478.2 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.4872, allocations: 4 kB / 478.2 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.64e-05/0.4873, allocations: 35.91 kB / 478.2 MB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.4873, allocations: 11.98 kB / 478.2 MB, free: 3.316 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.825e-05/0.4874, allocations: 111.3 kB / 478.3 MB, free: 3.207 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4874, allocations: 0 / 478.3 MB, free: 3.207 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003683/0.4878, allocations: 56 kB / 478.4 MB, free: 3.152 MB / 346.7 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 () * 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.000934/0.4887, allocations: 1.2 MB / 479.6 MB, free: 1.902 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005015/0.4892, allocations: 305.5 kB / 479.9 MB, free: 1.594 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/0.4892, allocations: 4 kB / 479.9 MB, free: 1.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002811/0.4895, allocations: 217.6 kB / 480.1 MB, free: 1.367 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003315/0.4899, allocations: 37.06 kB / 480.1 MB, free: 1.332 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.491, allocations: 0.619 MB / 480.8 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.4914, allocations: 0.7642 MB / 481.5 MB, free: 15.88 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.174e-05/0.4915, allocations: 22.02 kB / 481.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.4916, allocations: 67.41 kB / 481.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4916, allocations: 0 / 481.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02397/0.5156, allocations: 4.074 MB / 485.7 MB, free: 11.75 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000189/0.5158, allocations: 138.9 kB / 485.8 MB, free: 11.55 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.84/2.356, allocations: 0 / 485.8 MB, free: 11.55 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat