Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009453/0.0009451, allocations: 97.47 kB / 16.96 MB, free: 6.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 175.2 kB / 17.83 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.744/1.744, allocations: 205.4 MB / 224 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005894/0.0005894, allocations: 12.94 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1483, allocations: 47.58 MB / 328.4 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007727/0.1562, allocations: 6.767 MB / 335.2 MB, free: 13.17 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01993/0.1761, allocations: 16.79 MB / 352 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001323/0.1775, allocations: 35.69 kB / 352 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002283/0.1798, allocations: 0.6809 MB / 352.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007201/0.187, allocations: 1.39 MB / 354.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005057/0.1921, allocations: 0.995 MB / 355.1 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006476/0.1986, allocations: 2.992 MB / 358.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005089/0.1991, allocations: 201.1 kB / 358.3 MB, free: 6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00077/0.1999, allocations: 445.8 kB / 358.7 MB, free: 5.562 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005866/0.2005, allocations: 0.501 MB / 359.2 MB, free: 5.059 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.396e-05/0.2006, allocations: 24 kB / 359.3 MB, free: 5.035 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004283/0.2049, allocations: 1.058 MB / 360.3 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001705/0.2051, allocations: 143 kB / 360.4 MB, free: 3.836 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004707/0.2056, allocations: 324.8 kB / 360.8 MB, free: 3.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001874/0.2075, allocations: 1.57 MB / 362.3 MB, free: 1.938 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.2075, allocations: 0 / 362.3 MB, free: 1.938 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.047e-06/0.2075, allocations: 7.984 kB / 362.3 MB, free: 1.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.558e-05/0.2075, allocations: 0 / 362.3 MB, free: 1.93 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00282/0.2103, allocations: 1.815 MB / 364.2 MB, free: 56 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.763e-05/0.2104, allocations: 15.97 kB / 364.2 MB, free: 40 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001261/0.2105, allocations: 74.45 kB / 364.2 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002175/0.2108, allocations: 193.7 kB / 364.4 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001888/0.2127, allocations: 1.286 MB / 365.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.759e-05/0.2127, allocations: 20.56 kB / 365.7 MB, free: 14.39 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.723e-05/0.2128, allocations: 24 kB / 365.8 MB, free: 14.37 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000945/0.2137, allocations: 453.2 kB / 366.2 MB, free: 13.92 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.2138, allocations: 0 / 366.2 MB, free: 13.92 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.444e-05/0.2138, allocations: 15.98 kB / 366.2 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.2138, allocations: 8 kB / 366.2 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.215, allocations: 0.5098 MB / 366.7 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002638/0.2176, allocations: 1.643 MB / 368.4 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008702/0.2185, allocations: 415.3 kB / 368.8 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007065/0.2192, allocations: 437.8 kB / 369.2 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2653/0.4845, allocations: 15.24 MB / 384.5 MB, free: 50.55 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006835/0.4853, allocations: 278.4 kB / 384.7 MB, free: 50.51 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.314e-06/0.4853, allocations: 1.219 kB / 384.7 MB, free: 50.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002281/0.4876, allocations: 0.9143 MB / 385.6 MB, free: 50.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.4876, allocations: 60.3 kB / 385.7 MB, free: 50.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/0.49, allocations: 1.446 MB / 387.1 MB, free: 49.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.58e-05/0.49, allocations: 32.44 kB / 387.2 MB, free: 49.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005939/0.4906, allocations: 0.7237 MB / 387.9 MB, free: 49.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.089e-05/0.4907, allocations: 94.17 kB / 388 MB, free: 49.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.698e-05/0.4907, allocations: 10.34 kB / 388 MB, free: 49.26 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.765e-05/0.4908, allocations: 332.4 kB / 388.3 MB, free: 48.94 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004587/0.4913, allocations: 179.8 kB / 388.5 MB, free: 48.9 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005615/0.4919, allocations: 380.6 kB / 388.9 MB, free: 48.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004925/0.4924, allocations: 218 kB / 389.1 MB, free: 48.55 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.4924, allocations: 2.969 kB / 389.1 MB, free: 48.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001607/0.494, allocations: 0.7995 MB / 389.9 MB, free: 48.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.232e-05/0.494, allocations: 8.031 kB / 389.9 MB, free: 48.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.144e-05/0.4941, allocations: 45.64 kB / 389.9 MB, free: 48.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003636/0.4945, allocations: 133.1 kB / 390.1 MB, free: 48.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004336/0.495, allocations: 116.3 kB / 390.2 MB, free: 48.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005538/0.4955, allocations: 0.6825 MB / 390.9 MB, free: 47.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005639/0.4961, allocations: 85.64 kB / 391 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.412e-05/0.4962, allocations: 36.98 kB / 391 MB, free: 47.61 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004096/0.4966, allocations: 269.7 kB / 391.3 MB, free: 47.4 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.4968, allocations: 187.3 kB / 391.4 MB, free: 47.31 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/0.4988, allocations: 0.8001 MB / 392.2 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.355e-06/0.4989, allocations: 6.797 kB / 392.2 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.4989, allocations: 0.75 kB / 392.2 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.4989, allocations: 2.141 kB / 392.2 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002354/0.5013, allocations: 1.357 MB / 393.6 MB, free: 46.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.186e-05/0.5013, allocations: 41.19 kB / 393.6 MB, free: 46.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.5016, allocations: 50.16 kB / 393.7 MB, free: 46.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002032/0.5018, allocations: 131.4 kB / 393.8 MB, free: 46.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.412e-05/0.5018, allocations: 23.72 kB / 393.8 MB, free: 46.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004789/0.5023, allocations: 0.6612 MB / 394.5 MB, free: 45.75 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.5023, allocations: 0.9062 kB / 394.5 MB, free: 45.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.5036, allocations: 0.7611 MB / 395.3 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000302/0.5039, allocations: 284 kB / 395.5 MB, free: 45.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/0.504, allocations: 7.969 kB / 395.6 MB, free: 45.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003749/0.5044, allocations: 35.3 kB / 395.6 MB, free: 45.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.5046, allocations: 50.98 kB / 395.6 MB, free: 45.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.065e-05/0.5046, allocations: 19.66 kB / 395.7 MB, free: 45.15 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001274/0.5059, allocations: 0.9509 MB / 396.6 MB, free: 44.76 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5059, allocations: 0 / 396.6 MB, free: 44.76 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001007/0.5069, allocations: 326 kB / 396.9 MB, free: 44.74 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002332/0.5093, allocations: 1.766 MB / 398.7 MB, free: 43.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.5104, allocations: 0.5457 MB / 399.2 MB, free: 43.51 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.5104, allocations: 0 / 399.2 MB, free: 43.51 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005642/0.511, allocations: 313.5 kB / 399.5 MB, free: 43.36 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009147/0.5119, allocations: 250 kB / 399.8 MB, free: 43.21 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01451/0.5265, allocations: 8.197 MB / 408 MB, free: 35.4 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004775/0.527, allocations: 1.149 MB / 409.1 MB, free: 34.22 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007039/0.5277, allocations: 201.5 kB / 409.3 MB, free: 34.03 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004983/0.5282, allocations: 0.5618 MB / 409.9 MB, free: 33.46 MB / 318.1 MB Notification: Performance of SimCode: time 1.433e-06/0.5282, allocations: 0 / 409.9 MB, free: 33.46 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05513/0.5834, allocations: 32.95 MB / 442.8 MB, free: 500 kB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001804/0.5836, allocations: 213 kB / 443 MB, free: 252 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.846/3.429, allocations: 8 kB / 443.1 MB, free: 244 kB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat