Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001855/0.001855, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009853/0.0009856, allocations: 104.5 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.962e-05/1.966e-05, allocations: 4 kB / 343.8 MB, free: 8.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1134, allocations: 51.48 MB / 395.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.36/0.4734, allocations: 104.4 MB / 499.6 MB, free: 4.805 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/0.4737, allocations: 72.33 kB / 499.7 MB, free: 4.766 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5969/1.071, allocations: 136.2 MB / 0.621 GB, free: 77.71 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.332e-06/1.071, allocations: 1.781 kB / 0.621 GB, free: 77.71 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002246/1.071, allocations: 44.81 kB / 0.621 GB, free: 77.71 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.005875/1.077, allocations: 2.712 MB / 0.6237 GB, free: 76.22 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/1.077, allocations: 7.781 kB / 0.6237 GB, free: 76.22 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007735/1.078, allocations: 393.1 kB / 0.6241 GB, free: 76.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004883/1.082, allocations: 2.343 MB / 0.6264 GB, free: 75.38 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.85e-05/1.083, allocations: 22.41 kB / 0.6264 GB, free: 75.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002278/1.083, allocations: 37.75 kB / 0.6264 GB, free: 75.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001368/1.084, allocations: 0.6882 MB / 0.6271 GB, free: 75.37 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/1.085, allocations: 0.716 MB / 0.6278 GB, free: 75.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/1.085, allocations: 1.344 kB / 0.6278 GB, free: 75.25 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.358e-05/1.086, allocations: 3.891 kB / 0.6278 GB, free: 75.25 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.316e-05/1.086, allocations: 21.88 kB / 0.6278 GB, free: 75.25 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006508/1.092, allocations: 3.066 MB / 0.6308 GB, free: 74.72 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006669/1.093, allocations: 470.3 kB / 0.6313 GB, free: 74.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006407/1.093, allocations: 0.5779 MB / 0.6318 GB, free: 74.67 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03091/1.124, allocations: 36.71 MB / 0.6677 GB, free: 45.02 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004039/1.125, allocations: 309.6 kB / 0.668 GB, free: 44.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.665e-06/1.125, allocations: 0 / 0.668 GB, free: 44.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001394/1.126, allocations: 0.7832 MB / 0.6687 GB, free: 44.57 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.76e-05/1.126, allocations: 271.9 kB / 0.669 GB, free: 44.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002819/1.129, allocations: 2.306 MB / 0.6712 GB, free: 43.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.992e-05/1.129, allocations: 29.67 kB / 0.6713 GB, free: 43.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009838/1.13, allocations: 1.492 MB / 0.6727 GB, free: 42.09 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/1.13, allocations: 160.9 kB / 0.6729 GB, free: 41.97 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.133e-05/1.13, allocations: 3.188 kB / 0.6729 GB, free: 41.97 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.317e-05/1.13, allocations: 336.4 kB / 0.6732 GB, free: 41.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002424/1.131, allocations: 174.5 kB / 0.6734 GB, free: 41.59 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003687/1.131, allocations: 0.578 MB / 0.6739 GB, free: 40.97 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003867/1.131, allocations: 269.4 kB / 0.6742 GB, free: 40.86 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/1.131, allocations: 3.875 kB / 0.6742 GB, free: 40.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001517/1.133, allocations: 1.03 MB / 0.6752 GB, free: 40.44 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/1.133, allocations: 10.06 kB / 0.6752 GB, free: 40.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/1.133, allocations: 80.27 kB / 0.6753 GB, free: 40.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.06e-05/1.133, allocations: 18.78 kB / 0.6753 GB, free: 40.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007118/1.134, allocations: 220.3 kB / 0.6755 GB, free: 40.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.185e-05/1.134, allocations: 22.22 kB / 0.6755 GB, free: 40.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001266/1.135, allocations: 115.4 kB / 0.6756 GB, free: 40.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.069e-05/1.135, allocations: 66.78 kB / 0.6757 GB, free: 40.34 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.0001627/1.135, allocations: 141.6 kB / 0.6758 GB, free: 40.21 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009105/1.136, allocations: 0.7861 MB / 0.6766 GB, free: 39.88 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003077/1.137, allocations: 378.8 kB / 0.677 GB, free: 39.69 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002487/1.139, allocations: 1.107 MB / 0.6781 GB, free: 39.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/1.139, allocations: 15.14 kB / 0.6781 GB, free: 39.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/1.139, allocations: 0 / 0.6781 GB, free: 39.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/1.139, allocations: 0 / 0.6781 GB, free: 39.27 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002842/1.142, allocations: 1.996 MB / 0.68 GB, free: 38.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.475e-05/1.142, allocations: 70.06 kB / 0.6801 GB, free: 38.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004667/1.143, allocations: 102.9 kB / 0.6802 GB, free: 38.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.406e-06/1.143, allocations: 7.547 kB / 0.6802 GB, free: 38.38 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.895e-05/1.143, allocations: 22.31 kB / 0.6802 GB, free: 38.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/1.143, allocations: 7.906 kB / 0.6802 GB, free: 38.37 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.143, allocations: 4 kB / 0.6802 GB, free: 38.37 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/1.144, allocations: 1.184 MB / 0.6814 GB, free: 37.72 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008026/1.145, allocations: 0.5491 MB / 0.6819 GB, free: 37.31 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003146/1.145, allocations: 7.781 kB / 0.6819 GB, free: 37.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007113/1.146, allocations: 36.88 kB / 0.682 GB, free: 37.31 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/1.146, allocations: 63.61 kB / 0.682 GB, free: 37.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.336e-05/1.146, allocations: 43.17 kB / 0.6821 GB, free: 37.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002045/1.148, allocations: 1.706 MB / 0.6837 GB, free: 36.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.148, allocations: 7.938 kB / 0.6837 GB, free: 36.58 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001549/1.15, allocations: 0.5998 MB / 0.6843 GB, free: 36.51 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.002573/1.152, allocations: 2.679 MB / 0.6869 GB, free: 35.06 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0008853/1.153, allocations: 0.6682 MB / 0.6876 GB, free: 34.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/1.153, allocations: 0 / 0.6876 GB, free: 34.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003664/1.154, allocations: 383.8 kB / 0.688 GB, free: 34.56 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002249/1.156, allocations: 0.5913 MB / 0.6885 GB, free: 34.36 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005866/1.162, allocations: 3.576 MB / 0.692 GB, free: 32.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001009/1.163, allocations: 1.729 MB / 0.6937 GB, free: 32.14 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001329/1.164, allocations: 377.7 kB / 0.6941 GB, free: 32.05 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001011/1.165, allocations: 1.213 MB / 0.6953 GB, free: 31.08 MB / 442.7 MB Notification: Performance of SimCode: time 1.313e-06/1.165, allocations: 0 / 0.6953 GB, free: 31.08 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09872/1.264, allocations: 53.51 MB / 0.7475 GB, free: 0.5273 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/1.264, allocations: 142.2 kB / 0.7477 GB, free: 348 kB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.791/6.055, allocations: 0 / 0.7477 GB, free: 348 kB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat