Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.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.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S",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.001239/0.001239, allocations: 176.4 kB / 8.349 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.499/1.499, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.0008038/0.0008037, allocations: 80.69 kB / 281.1 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.132e-05/2.126e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0972/0.09724, allocations: 50.41 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3328/0.4301, allocations: 82.07 MB / 469.6 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/0.4303, allocations: 71.97 kB / 469.7 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05255/0.4829, allocations: 28.25 MB / 497.9 MB, free: 492 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4829, allocations: 0 / 497.9 MB, free: 492 kB / 362.7 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.4829, allocations: 4 kB / 497.9 MB, free: 488 kB / 362.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.0005447/0.4835, allocations: 0.6254 MB / 498.6 MB, free: 15.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.4835, allocations: 8.031 kB / 498.6 MB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.312e-05/0.4836, allocations: 39.58 kB / 498.6 MB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003145/0.4839, allocations: 255.7 kB / 498.9 MB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.484, allocations: 8 kB / 498.9 MB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.267e-05/0.484, allocations: 8 kB / 498.9 MB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001468/0.4842, allocations: 59.97 kB / 498.9 MB, free: 15.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/0.4844, allocations: 145.5 kB / 499.1 MB, free: 15.22 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.4844, allocations: 0 / 499.1 MB, free: 15.22 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.4845, allocations: 7.984 kB / 499.1 MB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.4845, allocations: 7.891 kB / 499.1 MB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006834/0.4852, allocations: 445.1 kB / 499.5 MB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001432/0.4853, allocations: 102.5 kB / 499.6 MB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.4854, allocations: 80.91 kB / 499.7 MB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.035e-05/0.4855, allocations: 0 / 499.7 MB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002586/0.4857, allocations: 218.7 kB / 499.9 MB, free: 14.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.904e-06/0.4857, allocations: 4 kB / 499.9 MB, free: 14.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005057/0.4863, allocations: 313.1 kB / 0.4885 GB, free: 13.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.567e-05/0.4863, allocations: 170.2 kB / 0.4887 GB, free: 13.78 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004911/0.4868, allocations: 452.8 kB / 0.4891 GB, free: 13.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.4869, allocations: 29.7 kB / 0.4891 GB, free: 13.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.251e-05/0.4869, allocations: 97.45 kB / 0.4892 GB, free: 13.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.438e-05/0.487, allocations: 27.7 kB / 0.4893 GB, free: 13.17 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.125e-05/0.487, allocations: 0.75 kB / 0.4893 GB, free: 13.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.4872, allocations: 326.8 kB / 0.4896 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.375e-05/0.4873, allocations: 59.98 kB / 0.4896 GB, free: 12.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.201e-05/0.4874, allocations: 59.97 kB / 0.4897 GB, free: 12.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.183e-05/0.4874, allocations: 47.97 kB / 0.4897 GB, free: 12.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.4875, allocations: 4 kB / 0.4897 GB, free: 12.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000424/0.4879, allocations: 289.3 kB / 0.49 GB, free: 12.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.604e-05/0.488, allocations: 124.2 kB / 0.4901 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.488, allocations: 3.938 kB / 0.4901 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.488, allocations: 0 / 0.4901 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.595e-05/0.488, allocations: 0 / 0.4901 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.4881, allocations: 15.94 kB / 0.4901 GB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.4882, allocations: 8 kB / 0.4901 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.4883, allocations: 124 kB / 0.4903 GB, free: 12.09 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,$PRE.iNV3S.inertialDelaySensitive.y,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 () * 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.0001649/0.4885, allocations: 245.5 kB / 0.4905 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004643/0.4889, allocations: 341.2 kB / 0.4908 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.43e-05/0.489, allocations: 35.62 kB / 0.4909 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.4891, allocations: 75.36 kB / 0.4909 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.4891, allocations: 0 / 0.4909 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.4891, allocations: 4 kB / 0.4909 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.4891, allocations: 0 / 0.4909 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007237/0.4899, allocations: 0.6707 MB / 0.4916 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.4899, allocations: 0 / 0.4916 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.96e-06/0.4899, allocations: 0 / 0.4916 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.4899, allocations: 4 kB / 0.4916 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.247e-05/0.4899, allocations: 19.94 kB / 0.4916 GB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.4899, allocations: 4 kB / 0.4916 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.49, allocations: 0 / 0.4916 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004852/0.4904, allocations: 442.9 kB / 0.492 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002856/0.4907, allocations: 252.4 kB / 0.4923 GB, free: 9.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.148e-05/0.4908, allocations: 12 kB / 0.4923 GB, free: 9.898 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.491, allocations: 23.84 kB / 0.4923 GB, free: 9.875 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.4911, allocations: 27.97 kB / 0.4923 GB, free: 9.848 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.4912, allocations: 123.8 kB / 0.4925 GB, free: 9.727 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003745/0.4916, allocations: 370.7 kB / 0.4928 GB, free: 9.367 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4916, allocations: 4 kB / 0.4928 GB, free: 9.363 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002763/0.4919, allocations: 40 kB / 0.4929 GB, free: 9.324 MB / 378.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) * 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.0008091/0.4927, allocations: 0.9792 MB / 0.4938 GB, free: 8.316 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004114/0.4931, allocations: 425.6 kB / 0.4942 GB, free: 7.852 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4931, allocations: 4 kB / 0.4942 GB, free: 7.848 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002528/0.4934, allocations: 373.6 kB / 0.4946 GB, free: 7.434 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005189/0.4939, allocations: 114.2 kB / 0.4947 GB, free: 7.324 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.4949, allocations: 0.606 MB / 0.4953 GB, free: 6.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.4953, allocations: 0.8139 MB / 0.4961 GB, free: 5.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.105e-05/0.4954, allocations: 8.609 kB / 0.4961 GB, free: 5.832 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.495e-05/0.4954, allocations: 31.42 kB / 0.4961 GB, free: 5.801 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4954, allocations: 0 / 0.4961 GB, free: 5.801 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0234/0.5188, allocations: 6.608 MB / 0.5026 GB, free: 15.15 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001698/0.5191, allocations: 127.9 kB / 0.5027 GB, free: 14.96 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/2.15, allocations: 0 / 0.5027 GB, free: 14.96 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.mat does not exist to compare? outputFormat=mat