Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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.002228/0.002228, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.224/2.224, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00111/0.00111, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.653e-05/3.681e-05, allocations: 0 / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0953/0.09539, allocations: 47.58 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4542/0.5497, allocations: 102.2 MB / 471.4 MB, free: 7.254 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/0.55, allocations: 72.03 kB / 471.5 MB, free: 7.219 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7383/1.288, allocations: 125.5 MB / 0.583 GB, free: 89.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.288, allocations: 0 / 0.583 GB, free: 89.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003284/1.289, allocations: 43.06 kB / 0.583 GB, free: 89.84 MB / 410.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.009959/1.299, allocations: 2.723 MB / 0.5857 GB, free: 88.17 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.402e-05/1.299, allocations: 7.625 kB / 0.5857 GB, free: 88.17 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004671/1.299, allocations: 96.36 kB / 0.5858 GB, free: 88.1 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001205/1.301, allocations: 395.8 kB / 0.5861 GB, free: 87.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01/1.311, allocations: 2.371 MB / 0.5885 GB, free: 86.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.773e-05/1.311, allocations: 45.77 kB / 0.5885 GB, free: 86.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004222/1.311, allocations: 51.97 kB / 0.5886 GB, free: 86.76 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003017/1.314, allocations: 0.7864 MB / 0.5893 GB, free: 86.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.245e-05/1.314, allocations: 0 / 0.5893 GB, free: 86.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001747/1.314, allocations: 27.81 kB / 0.5893 GB, free: 86.38 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.282e-05/1.315, allocations: 19.62 kB / 0.5894 GB, free: 86.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002775/1.317, allocations: 0.7099 MB / 0.5901 GB, free: 86.17 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01486/1.332, allocations: 3.181 MB / 0.5932 GB, free: 84.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001715/1.334, allocations: 497.3 kB / 0.5936 GB, free: 84.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001818/1.336, allocations: 0.5928 MB / 0.5942 GB, free: 84.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06835/1.404, allocations: 36.17 MB / 0.6295 GB, free: 46.03 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009861/1.405, allocations: 321.5 kB / 0.6299 GB, free: 45.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 5.401e-06/1.405, allocations: 0 / 0.6299 GB, free: 45.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.00271/1.408, allocations: 0.8106 MB / 0.6306 GB, free: 44.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/1.408, allocations: 266.1 kB / 0.6309 GB, free: 44.56 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007362/1.416, allocations: 2.52 MB / 0.6334 GB, free: 42.03 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002174/1.416, allocations: 41.7 kB / 0.6334 GB, free: 41.98 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001987/1.418, allocations: 1.236 MB / 0.6346 GB, free: 40.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003984/1.418, allocations: 171.2 kB / 0.6348 GB, free: 40.58 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.727e-05/1.419, allocations: 16 kB / 0.6348 GB, free: 40.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/1.419, allocations: 342.8 kB / 0.6351 GB, free: 40.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000728/1.419, allocations: 190 kB / 0.6353 GB, free: 40.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/1.42, allocations: 0.5933 MB / 0.6359 GB, free: 39.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000907/1.421, allocations: 280.7 kB / 0.6361 GB, free: 38.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.434e-05/1.421, allocations: 7.938 kB / 0.6361 GB, free: 38.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002626/1.424, allocations: 0.8192 MB / 0.6369 GB, free: 38.15 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.698e-05/1.424, allocations: 8 kB / 0.637 GB, free: 38.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002084/1.424, allocations: 79.98 kB / 0.637 GB, free: 38.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.599e-05/1.424, allocations: 20 kB / 0.6371 GB, free: 38.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/1.426, allocations: 219.9 kB / 0.6373 GB, free: 37.83 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.096e-05/1.426, allocations: 23.89 kB / 0.6373 GB, free: 37.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002966/1.429, allocations: 130.9 kB / 0.6374 GB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002336/1.429, allocations: 60 kB / 0.6375 GB, free: 37.62 MB / 410.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.0003386/1.43, allocations: 173.5 kB / 0.6376 GB, free: 37.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007522/1.431, allocations: 383.4 kB / 0.638 GB, free: 37.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004444/1.435, allocations: 1.15 MB / 0.6391 GB, free: 35.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/1.435, allocations: 4 kB / 0.6391 GB, free: 35.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/1.435, allocations: 0 / 0.6391 GB, free: 35.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/1.435, allocations: 11.94 kB / 0.6391 GB, free: 35.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005099/1.44, allocations: 2.114 MB / 0.6412 GB, free: 33.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001377/1.44, allocations: 67.98 kB / 0.6413 GB, free: 33.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009102/1.441, allocations: 103.9 kB / 0.6414 GB, free: 33.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-05/1.441, allocations: 4 kB / 0.6414 GB, free: 33.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.014e-05/1.442, allocations: 40 kB / 0.6414 GB, free: 33.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.972e-06/1.442, allocations: 0 / 0.6414 GB, free: 33.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.442, allocations: 4 kB / 0.6414 GB, free: 33.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002448/1.444, allocations: 1.212 MB / 0.6426 GB, free: 32.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001508/1.446, allocations: 0.5568 MB / 0.6431 GB, free: 31.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000691/1.446, allocations: 16 kB / 0.6432 GB, free: 31.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/1.448, allocations: 39.95 kB / 0.6432 GB, free: 31.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/1.448, allocations: 59.94 kB / 0.6432 GB, free: 31.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/1.448, allocations: 43.92 kB / 0.6433 GB, free: 31.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004143/1.452, allocations: 1.923 MB / 0.6452 GB, free: 29.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.172e-06/1.452, allocations: 0 / 0.6452 GB, free: 29.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002564/1.455, allocations: 0.64 MB / 0.6458 GB, free: 28.93 MB / 410.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.004354/1.459, allocations: 2.628 MB / 0.6484 GB, free: 26.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001672/1.461, allocations: 0.7042 MB / 0.649 GB, free: 25.67 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/1.461, allocations: 0 / 0.649 GB, free: 25.67 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007394/1.462, allocations: 399.8 kB / 0.6494 GB, free: 25.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003011/1.465, allocations: 0.4986 MB / 0.6499 GB, free: 24.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/1.475, allocations: 3.707 MB / 0.6535 GB, free: 20.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/1.477, allocations: 1.736 MB / 0.6552 GB, free: 19.22 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001815/1.478, allocations: 1.226 MB / 0.6564 GB, free: 17.99 MB / 410.7 MB Notification: Performance of SimCode: time 2.184e-06/1.478, allocations: 0 / 0.6564 GB, free: 17.99 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.91/5.389, allocations: 48.54 MB / 0.7038 GB, free: 91.55 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat