Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001534/0.001539, allocations: 188.6 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.14/2.14, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001203/0.001202, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004129/0.0004133, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1047, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003618/0.1084, allocations: 1.936 MB / 376.6 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.1101, allocations: 0.6012 MB / 377.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000174/0.1103, allocations: 4 kB / 377.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.016e-05/0.1104, allocations: 31.77 kB / 377.2 MB, free: 12.74 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002617/0.1107, allocations: 71.77 kB / 377.3 MB, free: 12.67 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002634/0.1109, allocations: 47.95 kB / 377.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003511/0.1113, allocations: 179.6 kB / 377.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002276/0.1115, allocations: 61.36 kB / 377.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001872/0.1118, allocations: 83.69 kB / 377.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/0.112, allocations: 95.56 kB / 377.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.886e-05/0.112, allocations: 12 kB / 377.8 MB, free: 12.2 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.091e-05/0.1121, allocations: 12 kB / 377.8 MB, free: 12.19 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.077e-05/0.1121, allocations: 31.84 kB / 377.8 MB, free: 12.16 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.86e-05/0.1122, allocations: 61.64 kB / 377.9 MB, free: 12.09 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002889/0.1125, allocations: 191.6 kB / 378 MB, free: 11.9 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1126, allocations: 0 / 378 MB, free: 11.9 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.1126, allocations: 3.938 kB / 378 MB, free: 11.9 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.1126, allocations: 0 / 378 MB, free: 11.9 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001035/0.1136, allocations: 498.9 kB / 378.5 MB, free: 11.36 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.1137, allocations: 8.031 kB / 378.5 MB, free: 11.35 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.72e-05/0.1138, allocations: 58.53 kB / 378.6 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.956e-05/0.1139, allocations: 27.66 kB / 378.6 MB, free: 11.26 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.1142, allocations: 243.3 kB / 378.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.1143, allocations: 16.44 kB / 378.9 MB, free: 10.96 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.846e-05/0.1143, allocations: 23.94 kB / 378.9 MB, free: 10.94 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006218/0.115, allocations: 221.3 kB / 379.1 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.115, allocations: 0 / 379.1 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/0.115, allocations: 8 kB / 379.1 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.1151, allocations: 8 kB / 379.1 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005541/0.1156, allocations: 152.5 kB / 379.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001793/0.1174, allocations: 0.7918 MB / 380.1 MB, free: 9.691 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006468/0.1181, allocations: 201 kB / 380.3 MB, free: 9.477 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.348e-05/0.1182, allocations: 7.922 kB / 380.3 MB, free: 9.469 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.1182, allocations: 38.56 kB / 380.3 MB, free: 9.422 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 3.346e-06/0.1182, allocations: 4 kB / 380.3 MB, free: 9.418 MB / 282.7 MB Notification: Performance of matching and sorting (n=26): time 0.002522/0.1208, allocations: 0.8837 MB / 381.2 MB, free: 8.441 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.1209, allocations: 81.11 kB / 381.3 MB, free: 8.344 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.1211, allocations: 182.1 kB / 381.5 MB, free: 8.156 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.1212, allocations: 25.7 kB / 381.5 MB, free: 8.125 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.1213, allocations: 202.8 kB / 381.7 MB, free: 7.926 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.1214, allocations: 90.66 kB / 381.8 MB, free: 7.836 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.033e-05/0.1215, allocations: 8 kB / 381.8 MB, free: 7.828 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.1216, allocations: 318.8 kB / 382.1 MB, free: 7.508 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002675/0.1219, allocations: 67.97 kB / 382.2 MB, free: 7.441 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003023/0.1222, allocations: 116.2 kB / 382.3 MB, free: 7.312 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003089/0.1225, allocations: 79.98 kB / 382.3 MB, free: 7.234 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.1225, allocations: 4 kB / 382.4 MB, free: 7.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007523/0.1233, allocations: 253.2 kB / 382.6 MB, free: 6.977 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.1233, allocations: 4 kB / 382.6 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.1234, allocations: 3.953 kB / 382.6 MB, free: 6.969 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.1234, allocations: 4 kB / 382.6 MB, free: 6.965 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004961/0.1239, allocations: 63.84 kB / 382.7 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.1239, allocations: 4.391 kB / 382.7 MB, free: 6.898 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.1242, allocations: 24.02 kB / 382.7 MB, free: 6.875 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.097e-05/0.1242, allocations: 12 kB / 382.7 MB, free: 6.863 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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): 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001848/0.1244, allocations: 137.8 kB / 382.8 MB, free: 6.719 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.132e-05/0.1245, allocations: 15.81 kB / 382.9 MB, free: 6.703 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.148e-05/0.1246, allocations: 33.8 kB / 382.9 MB, free: 6.668 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.1246, allocations: 7.953 kB / 382.9 MB, free: 6.66 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.1246, allocations: 0 / 382.9 MB, free: 6.66 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.1246, allocations: 4 kB / 382.9 MB, free: 6.656 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001308/0.126, allocations: 0.58 MB / 383.5 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.126, allocations: 4 kB / 383.5 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005525/0.1266, allocations: 63.98 kB / 383.6 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-05/0.1266, allocations: 4 kB / 383.6 MB, free: 5.941 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.151e-05/0.1266, allocations: 8 kB / 383.6 MB, free: 5.934 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.1266, allocations: 0 / 383.6 MB, free: 5.934 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1267, allocations: 0 / 383.6 MB, free: 5.934 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.1278, allocations: 0.5481 MB / 384.1 MB, free: 5.336 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.96e-05/0.128, allocations: 92.95 kB / 384.2 MB, free: 5.227 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.017e-05/0.128, allocations: 8 kB / 384.2 MB, free: 5.219 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002833/0.1283, allocations: 15.95 kB / 384.2 MB, free: 5.203 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.374e-05/0.1284, allocations: 19.97 kB / 384.2 MB, free: 5.184 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.1284, allocations: 4 kB / 384.3 MB, free: 5.18 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001572/0.1286, allocations: 132.3 kB / 384.4 MB, free: 5.051 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.1286, allocations: 4 kB / 384.4 MB, free: 5.047 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005316/0.1292, allocations: 52 kB / 384.4 MB, free: 4.996 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.v) * 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 (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00171/0.1309, allocations: 1.367 MB / 385.8 MB, free: 3.578 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006857/0.1316, allocations: 179.8 kB / 386 MB, free: 3.402 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.1316, allocations: 4 kB / 386 MB, free: 3.398 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003322/0.132, allocations: 104.2 kB / 386.1 MB, free: 3.297 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005779/0.1326, allocations: 32.69 kB / 386.1 MB, free: 3.266 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00433/0.1369, allocations: 2.224 MB / 388.3 MB, free: 0.957 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004501/0.1374, allocations: 0.7523 MB / 389.1 MB, free: 184 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.1377, allocations: 67.41 kB / 389.2 MB, free: 116 kB / 282.7 MB Notification: Performance of SimCode: time 1.212e-06/0.1377, allocations: 0 / 389.2 MB, free: 116 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.09/3.228, allocations: 3.525 MB / 392.7 MB, free: 19.87 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat