Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.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.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_INV3S",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.002529/0.002534, allocations: 188.9 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.254/2.254, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.00116/0.00116, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003932/0.0003934, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09867/0.0991, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.002042/0.1012, allocations: 1.2 MB / 375.8 MB, free: 14.13 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002804/0.1041, allocations: 0.8484 MB / 376.7 MB, free: 13.27 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.584e-05/0.1042, allocations: 0 / 376.7 MB, free: 13.27 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.793e-05/0.1043, allocations: 15.92 kB / 376.7 MB, free: 13.26 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.1044, allocations: 11.97 kB / 376.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.1047, allocations: 47.77 kB / 376.8 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001564/0.1049, allocations: 67.91 kB / 376.8 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.105, allocations: 19.94 kB / 376.8 MB, free: 13.11 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005538/0.1055, allocations: 287.5 kB / 377.1 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.1057, allocations: 75.81 kB / 377.2 MB, free: 12.76 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.696e-05/0.1058, allocations: 8 kB / 377.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.319e-05/0.1058, allocations: 4 kB / 377.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.106, allocations: 63.75 kB / 377.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.076e-05/0.1061, allocations: 73.52 kB / 377.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004144/0.1065, allocations: 279.3 kB / 377.6 MB, free: 12.33 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.1065, allocations: 0 / 377.6 MB, free: 12.33 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.728e-06/0.1065, allocations: 4 kB / 377.6 MB, free: 12.33 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.1065, allocations: 0 / 377.6 MB, free: 12.33 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008751/0.1074, allocations: 0.6568 MB / 378.3 MB, free: 11.6 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.1075, allocations: 12.03 kB / 378.3 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.934e-05/0.1075, allocations: 50.48 kB / 378.3 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.743e-05/0.1076, allocations: 39.53 kB / 378.4 MB, free: 11.49 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003703/0.108, allocations: 257.3 kB / 378.6 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.1081, allocations: 8 kB / 378.6 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.04e-05/0.1081, allocations: 8 kB / 378.6 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004259/0.1086, allocations: 117.6 kB / 378.8 MB, free: 11.06 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1086, allocations: 0 / 378.8 MB, free: 11.06 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.1086, allocations: 11.94 kB / 378.8 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.1086, allocations: 3.984 kB / 378.8 MB, free: 11.04 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002302/0.1089, allocations: 55.97 kB / 378.8 MB, free: 10.99 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009077/0.1098, allocations: 452.6 kB / 379.3 MB, free: 10.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003229/0.1102, allocations: 98.47 kB / 379.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.1102, allocations: 0 / 379.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004784/0.1107, allocations: 214.6 kB / 379.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 2.435e-06/0.1107, allocations: 4 kB / 379.6 MB, free: 10.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.00135/0.112, allocations: 0.6116 MB / 380.2 MB, free: 9.473 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.1122, allocations: 166.2 kB / 380.4 MB, free: 9.273 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001024/0.1132, allocations: 0.5245 MB / 380.9 MB, free: 8.742 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.605e-05/0.1133, allocations: 33.69 kB / 380.9 MB, free: 8.703 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.1134, allocations: 163.6 kB / 381.1 MB, free: 8.543 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.513e-05/0.1135, allocations: 23.66 kB / 381.1 MB, free: 8.52 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.287e-05/0.1135, allocations: 8 kB / 381.1 MB, free: 8.512 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.1137, allocations: 322.8 kB / 381.4 MB, free: 8.188 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.1139, allocations: 51.97 kB / 381.5 MB, free: 8.137 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002544/0.1142, allocations: 73.69 kB / 381.5 MB, free: 8.059 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002802/0.1145, allocations: 162.7 kB / 381.7 MB, free: 7.875 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1145, allocations: 0 / 381.7 MB, free: 7.875 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008896/0.1154, allocations: 376.3 kB / 382.1 MB, free: 7.477 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001205/0.1155, allocations: 126.8 kB / 382.2 MB, free: 7.328 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.1155, allocations: 3.984 kB / 382.2 MB, free: 7.324 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.1156, allocations: 0 / 382.2 MB, free: 7.324 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.462e-05/0.1156, allocations: 0 / 382.2 MB, free: 7.324 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.1156, allocations: 7.938 kB / 382.2 MB, free: 7.316 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002662/0.1159, allocations: 8.109 kB / 382.2 MB, free: 7.309 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.706e-05/0.116, allocations: 55.88 kB / 382.3 MB, free: 7.254 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.iNV3S.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0005486/0.1166, allocations: 362.3 kB / 382.6 MB, free: 6.867 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.875e-05/0.1167, allocations: 35.62 kB / 382.7 MB, free: 6.832 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000154/0.1168, allocations: 63.16 kB / 382.7 MB, free: 6.766 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1168, allocations: 0 / 382.7 MB, free: 6.766 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.1169, allocations: 0 / 382.7 MB, free: 6.766 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1169, allocations: 0 / 382.7 MB, free: 6.766 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.1184, allocations: 0.8215 MB / 383.5 MB, free: 5.863 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1185, allocations: 0 / 383.5 MB, free: 5.863 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.648e-06/0.1185, allocations: 0 / 383.5 MB, free: 5.863 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-06/0.1185, allocations: 0 / 383.5 MB, free: 5.863 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.612e-05/0.1185, allocations: 15.98 kB / 383.6 MB, free: 5.848 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.1186, allocations: 4 kB / 383.6 MB, free: 5.844 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1186, allocations: 0 / 383.6 MB, free: 5.844 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.1196, allocations: 0.5252 MB / 384.1 MB, free: 5.277 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005327/0.1202, allocations: 248.4 kB / 384.3 MB, free: 5.016 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.199e-05/0.1203, allocations: 4 kB / 384.3 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002628/0.1205, allocations: 19.98 kB / 384.3 MB, free: 4.992 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.1207, allocations: 19.97 kB / 384.4 MB, free: 4.973 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.924e-05/0.1208, allocations: 55.92 kB / 384.4 MB, free: 4.918 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007612/0.1216, allocations: 386.9 kB / 384.8 MB, free: 4.543 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1216, allocations: 0 / 384.8 MB, free: 4.543 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004376/0.122, allocations: 51.89 kB / 384.9 MB, free: 4.492 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.001527/0.1236, allocations: 1.086 MB / 385.9 MB, free: 3.355 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008164/0.1244, allocations: 437.5 kB / 386.4 MB, free: 2.879 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1244, allocations: 0 / 386.4 MB, free: 2.879 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005023/0.1249, allocations: 373.6 kB / 386.7 MB, free: 2.465 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008153/0.1258, allocations: 102.1 kB / 386.8 MB, free: 2.363 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003739/0.1295, allocations: 1.631 MB / 388.5 MB, free: 0.668 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.258/0.3876, allocations: 0.8124 MB / 389.3 MB, free: 20.56 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.62e-05/0.3878, allocations: 27.38 kB / 389.3 MB, free: 20.55 MB / 282.7 MB Notification: Performance of SimCode: time 1.001e-06/0.3878, allocations: 0 / 389.3 MB, free: 20.55 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.65/3.037, allocations: 3.01 MB / 392.3 MB, free: 20.37 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S_res.mat does not exist to compare? outputFormat=mat