Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",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.002185/0.002185, allocations: 178.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.967/1.967, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 80.19 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.1e-05/2.097e-05, allocations: 0 / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3244, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1616/0.4861, allocations: 101.6 MB / 464 MB, free: 0.6211 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.4864, allocations: 72.81 kB / 464.1 MB, free: 0.5508 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6571/1.144, allocations: 122.1 MB / 0.5724 GB, free: 69.16 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.184e-06/1.144, allocations: 0 / 0.5724 GB, free: 69.16 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002608/1.144, allocations: 48 kB / 0.5724 GB, free: 69.12 MB / 395.1 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.006879/1.151, allocations: 2.806 MB / 0.5752 GB, free: 66.25 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/1.151, allocations: 12.03 kB / 0.5752 GB, free: 66.24 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008466/1.152, allocations: 422.8 kB / 0.5756 GB, free: 65.82 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007383/1.159, allocations: 2.427 MB / 0.578 GB, free: 63.38 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.932e-05/1.159, allocations: 15.95 kB / 0.578 GB, free: 63.36 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002117/1.159, allocations: 39.91 kB / 0.578 GB, free: 63.32 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001538/1.161, allocations: 0.6861 MB / 0.5787 GB, free: 62.64 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/1.163, allocations: 0.7206 MB / 0.5794 GB, free: 61.88 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.616e-05/1.163, allocations: 4 kB / 0.5794 GB, free: 61.88 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/1.163, allocations: 0 / 0.5794 GB, free: 61.88 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.81e-05/1.163, allocations: 19.98 kB / 0.5794 GB, free: 61.86 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009136/1.172, allocations: 3.175 MB / 0.5825 GB, free: 58.62 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/1.173, allocations: 471.9 kB / 0.583 GB, free: 58.15 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009448/1.174, allocations: 0.5771 MB / 0.5835 GB, free: 57.57 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06636/1.24, allocations: 36.18 MB / 0.6189 GB, free: 16.25 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006172/1.241, allocations: 305.7 kB / 0.6192 GB, free: 15.94 MB / 395.1 MB Notification: Performance of pre-optimization done (n=49): time 3.397e-06/1.241, allocations: 4 kB / 0.6192 GB, free: 15.94 MB / 395.1 MB Notification: Performance of matching and sorting (n=49): time 0.001883/1.243, allocations: 0.7972 MB / 0.6199 GB, free: 15.13 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.66e-05/1.243, allocations: 273 kB / 0.6202 GB, free: 14.8 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004934/1.248, allocations: 2.461 MB / 0.6226 GB, free: 12.35 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001555/1.248, allocations: 29.7 kB / 0.6226 GB, free: 12.31 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001526/1.25, allocations: 1.29 MB / 0.6239 GB, free: 11.02 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000347/1.25, allocations: 161.8 kB / 0.624 GB, free: 10.86 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.524e-05/1.25, allocations: 0 / 0.624 GB, free: 10.86 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 8.892e-05/1.25, allocations: 346.8 kB / 0.6244 GB, free: 10.51 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004311/1.251, allocations: 178.6 kB / 0.6245 GB, free: 10.33 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006164/1.251, allocations: 0.5784 MB / 0.6251 GB, free: 9.551 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006742/1.252, allocations: 268.5 kB / 0.6254 GB, free: 9.285 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/1.252, allocations: 4 kB / 0.6254 GB, free: 9.281 MB / 395.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00176/1.254, allocations: 0.7133 MB / 0.6261 GB, free: 8.566 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/1.254, allocations: 12.97 kB / 0.6261 GB, free: 8.555 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001754/1.254, allocations: 83.98 kB / 0.6262 GB, free: 8.473 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.931e-05/1.254, allocations: 24 kB / 0.6262 GB, free: 8.449 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/1.256, allocations: 207.6 kB / 0.6264 GB, free: 8.246 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.198e-05/1.256, allocations: 23.92 kB / 0.6264 GB, free: 8.223 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002182/1.258, allocations: 114.9 kB / 0.6265 GB, free: 8.109 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003188/1.258, allocations: 71.94 kB / 0.6266 GB, free: 8.039 MB / 395.1 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.0002821/1.259, allocations: 140.6 kB / 0.6267 GB, free: 7.895 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001827/1.26, allocations: 0.7974 MB / 0.6275 GB, free: 7.082 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006506/1.261, allocations: 407.1 kB / 0.6279 GB, free: 6.68 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004429/1.266, allocations: 1.133 MB / 0.629 GB, free: 5.543 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/1.266, allocations: 7.938 kB / 0.629 GB, free: 5.535 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/1.266, allocations: 7.938 kB / 0.629 GB, free: 5.527 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/1.266, allocations: 0 / 0.629 GB, free: 5.527 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005269/1.271, allocations: 2.09 MB / 0.631 GB, free: 3.379 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001416/1.271, allocations: 71.97 kB / 0.6311 GB, free: 3.309 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009146/1.272, allocations: 104 kB / 0.6312 GB, free: 3.207 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/1.272, allocations: 0 / 0.6312 GB, free: 3.207 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001166/1.272, allocations: 31.94 kB / 0.6312 GB, free: 3.176 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/1.272, allocations: 7.938 kB / 0.6313 GB, free: 3.168 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/1.272, allocations: 4 kB / 0.6313 GB, free: 3.164 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002437/1.275, allocations: 1.206 MB / 0.6324 GB, free: 1.918 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001507/1.276, allocations: 0.5117 MB / 0.6329 GB, free: 1.383 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006653/1.277, allocations: 4 kB / 0.6329 GB, free: 1.379 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001694/1.279, allocations: 48 kB / 0.633 GB, free: 1.332 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002508/1.279, allocations: 59.94 kB / 0.633 GB, free: 1.273 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/1.279, allocations: 39.98 kB / 0.6331 GB, free: 1.234 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.004356/1.283, allocations: 1.817 MB / 0.6349 GB, free: 15.43 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.001e-06/1.283, allocations: 3.938 kB / 0.6349 GB, free: 15.42 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0028/1.286, allocations: 0.6204 MB / 0.6355 GB, free: 14.8 MB / 411.1 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.005563/1.292, allocations: 2.744 MB / 0.6381 GB, free: 12.02 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.001805/1.294, allocations: 0.6681 MB / 0.6388 GB, free: 11.33 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/1.294, allocations: 0 / 0.6388 GB, free: 11.33 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008762/1.295, allocations: 395.1 kB / 0.6392 GB, free: 10.92 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003419/1.298, allocations: 0.5125 MB / 0.6397 GB, free: 10.4 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/1.311, allocations: 3.844 MB / 0.6434 GB, free: 6.492 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002045/1.313, allocations: 1.781 MB / 0.6452 GB, free: 4.68 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00263/1.316, allocations: 1.265 MB / 0.6464 GB, free: 3.414 MB / 411.1 MB Notification: Performance of SimCode: time 1.603e-06/1.316, allocations: 0 / 0.6464 GB, free: 3.414 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.806/5.122, allocations: 50.44 MB / 0.6957 GB, free: 80.85 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat