Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001862/0.001862, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009926/0.0009926, allocations: 94.31 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.491e-05/3.495e-05, allocations: 0 / 350.6 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1104, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3827/0.4931, allocations: 105 MB / 0.4953 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.4934, allocations: 77.14 kB / 0.4953 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5746/1.068, allocations: 143.6 MB / 0.6356 GB, free: 79.57 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.764e-06/1.068, allocations: 0 / 0.6356 GB, free: 79.57 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002946/1.068, allocations: 47.25 kB / 0.6357 GB, free: 79.57 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007158/1.076, allocations: 2.788 MB / 0.6384 GB, free: 77.86 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/1.076, allocations: 7.938 kB / 0.6384 GB, free: 77.86 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003762/1.076, allocations: 100.6 kB / 0.6385 GB, free: 77.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009456/1.077, allocations: 415.9 kB / 0.6389 GB, free: 77.58 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007083/1.084, allocations: 2.413 MB / 0.6412 GB, free: 76.46 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.958e-05/1.084, allocations: 42.77 kB / 0.6413 GB, free: 76.44 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000303/1.085, allocations: 59.2 kB / 0.6413 GB, free: 76.42 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0019/1.086, allocations: 0.7905 MB / 0.6421 GB, free: 76.05 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/1.087, allocations: 0 / 0.6421 GB, free: 76.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/1.087, allocations: 23.88 kB / 0.6421 GB, free: 76.03 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.881e-05/1.087, allocations: 19.38 kB / 0.6422 GB, free: 76.03 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/1.088, allocations: 0.703 MB / 0.6428 GB, free: 75.82 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008885/1.097, allocations: 3.269 MB / 0.646 GB, free: 74.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/1.098, allocations: 489.5 kB / 0.6465 GB, free: 74.03 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001019/1.099, allocations: 0.5852 MB / 0.6471 GB, free: 73.74 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04747/1.147, allocations: 36.78 MB / 0.683 GB, free: 43.39 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007309/1.148, allocations: 321.5 kB / 0.6833 GB, free: 43.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 3.897e-06/1.148, allocations: 4 kB / 0.6833 GB, free: 43.19 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002002/1.15, allocations: 0.816 MB / 0.6841 GB, free: 42.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.882e-05/1.15, allocations: 272.7 kB / 0.6844 GB, free: 42.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005338/1.155, allocations: 2.646 MB / 0.6869 GB, free: 41.29 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/1.155, allocations: 37.67 kB / 0.687 GB, free: 41.25 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001665/1.157, allocations: 1.578 MB / 0.6885 GB, free: 39.85 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002357/1.157, allocations: 170.6 kB / 0.6887 GB, free: 39.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.497e-05/1.157, allocations: 15.44 kB / 0.6887 GB, free: 39.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/1.157, allocations: 343.7 kB / 0.689 GB, free: 39.36 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005421/1.158, allocations: 185.5 kB / 0.6892 GB, free: 39.29 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007805/1.159, allocations: 0.5991 MB / 0.6898 GB, free: 38.66 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006743/1.159, allocations: 289.3 kB / 0.6901 GB, free: 38.52 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.114e-05/1.16, allocations: 6.906 kB / 0.6901 GB, free: 38.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00266/1.162, allocations: 1.131 MB / 0.6912 GB, free: 38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.035e-05/1.162, allocations: 16.05 kB / 0.6912 GB, free: 37.99 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001422/1.162, allocations: 80.58 kB / 0.6913 GB, free: 37.99 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.347e-05/1.162, allocations: 22.92 kB / 0.6913 GB, free: 37.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/1.164, allocations: 217.1 kB / 0.6915 GB, free: 37.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.914e-05/1.164, allocations: 22.75 kB / 0.6915 GB, free: 37.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002184/1.166, allocations: 128 kB / 0.6916 GB, free: 37.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/1.166, allocations: 69.75 kB / 0.6917 GB, free: 37.83 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0002342/1.166, allocations: 159.7 kB / 0.6918 GB, free: 37.68 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005632/1.167, allocations: 404.4 kB / 0.6922 GB, free: 37.48 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004552/1.171, allocations: 1.153 MB / 0.6934 GB, free: 36.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/1.171, allocations: 6.484 kB / 0.6934 GB, free: 36.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/1.171, allocations: 0 / 0.6934 GB, free: 36.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/1.171, allocations: 3.984 kB / 0.6934 GB, free: 36.89 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00497/1.176, allocations: 2.197 MB / 0.6955 GB, free: 35.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001209/1.177, allocations: 66.45 kB / 0.6956 GB, free: 35.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007809/1.177, allocations: 106.4 kB / 0.6957 GB, free: 35.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/1.177, allocations: 7.906 kB / 0.6957 GB, free: 35.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.089e-05/1.178, allocations: 29.31 kB / 0.6957 GB, free: 35.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/1.178, allocations: 7.906 kB / 0.6957 GB, free: 35.42 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/1.178, allocations: 0 / 0.6957 GB, free: 35.42 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002259/1.18, allocations: 1.234 MB / 0.6969 GB, free: 34.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001316/1.181, allocations: 0.5078 MB / 0.6974 GB, free: 33.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000519/1.182, allocations: 12 kB / 0.6974 GB, free: 33.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/1.183, allocations: 43.95 kB / 0.6975 GB, free: 33.75 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/1.183, allocations: 59.94 kB / 0.6975 GB, free: 33.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.509e-05/1.183, allocations: 48.03 kB / 0.6976 GB, free: 33.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003834/1.187, allocations: 2.018 MB / 0.6996 GB, free: 31.63 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.187, allocations: 0 / 0.6996 GB, free: 31.63 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002907/1.19, allocations: 0.6712 MB / 0.7002 GB, free: 30.96 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * 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.004415/1.195, allocations: 2.653 MB / 0.7028 GB, free: 28.44 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001644/1.196, allocations: 0.7089 MB / 0.7035 GB, free: 27.71 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/1.196, allocations: 4 kB / 0.7035 GB, free: 27.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006816/1.197, allocations: 391.6 kB / 0.7039 GB, free: 27.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004639/1.202, allocations: 0.6281 MB / 0.7045 GB, free: 26.69 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/1.214, allocations: 3.797 MB / 0.7082 GB, free: 22.83 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001533/1.216, allocations: 1.773 MB / 0.7099 GB, free: 21.03 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002514/1.218, allocations: 382.7 kB / 0.7103 GB, free: 20.65 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001694/1.22, allocations: 1.249 MB / 0.7115 GB, free: 19.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.884e-06/1.22, allocations: 0 / 0.7115 GB, free: 19.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3972/1.617, allocations: 61.92 MB / 0.772 GB, free: 92.41 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/1.618, allocations: 162 kB / 0.7721 GB, free: 92.19 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.73/6.347, allocations: 4 kB / 0.7721 GB, free: 92.19 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat