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.001759/0.001759, allocations: 197.2 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.611/1.611, allocations: 225.4 MB / 240.1 MB, free: 15.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001134/0.001134, allocations: 84.83 kB / 292.1 MB, free: 5.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.282e-05/4.287e-05, allocations: 4 kB / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1288, allocations: 51.47 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3976/0.5265, allocations: 105 MB / 0.4952 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.5268, allocations: 72.7 kB / 0.4953 GB, free: 0.668 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5784/1.105, allocations: 141.5 MB / 0.6335 GB, free: 80.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.873e-06/1.105, allocations: 4 kB / 0.6335 GB, free: 80.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.426e-05/1.105, allocations: 42.91 kB / 0.6335 GB, free: 80.25 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.004702/1.11, allocations: 2.703 MB / 0.6362 GB, free: 78.6 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/1.11, allocations: 7.875 kB / 0.6362 GB, free: 78.6 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000151/1.11, allocations: 102.2 kB / 0.6363 GB, free: 78.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005243/1.111, allocations: 396.2 kB / 0.6367 GB, free: 78.32 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004612/1.115, allocations: 2.347 MB / 0.6389 GB, free: 77.24 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.422e-05/1.116, allocations: 38.8 kB / 0.639 GB, free: 77.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/1.116, allocations: 55.12 kB / 0.639 GB, free: 77.21 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/1.117, allocations: 0.7894 MB / 0.6398 GB, free: 76.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/1.117, allocations: 0 / 0.6398 GB, free: 76.84 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.467e-05/1.117, allocations: 19.97 kB / 0.6398 GB, free: 76.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.863e-05/1.117, allocations: 22.75 kB / 0.6398 GB, free: 76.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009728/1.118, allocations: 0.7141 MB / 0.6405 GB, free: 76.61 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005658/1.124, allocations: 3.175 MB / 0.6436 GB, free: 75.09 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007128/1.124, allocations: 490.5 kB / 0.6441 GB, free: 74.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006259/1.125, allocations: 0.5837 MB / 0.6447 GB, free: 74.56 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03258/1.158, allocations: 36.74 MB / 0.6806 GB, free: 44.81 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006059/1.158, allocations: 324.7 kB / 0.6809 GB, free: 44.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 4.549e-06/1.158, allocations: 0 / 0.6809 GB, free: 44.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001744/1.16, allocations: 0.7979 MB / 0.6817 GB, free: 44.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/1.16, allocations: 267.8 kB / 0.6819 GB, free: 43.94 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005623/1.166, allocations: 2.5 MB / 0.6844 GB, free: 42.78 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000144/1.166, allocations: 41.64 kB / 0.6844 GB, free: 42.74 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001537/1.168, allocations: 1.493 MB / 0.6858 GB, free: 41.41 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002718/1.168, allocations: 162.2 kB / 0.686 GB, free: 41.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.215e-05/1.168, allocations: 19.91 kB / 0.686 GB, free: 41.26 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.149e-05/1.168, allocations: 337.4 kB / 0.6863 GB, free: 40.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004582/1.169, allocations: 188.4 kB / 0.6865 GB, free: 40.87 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005553/1.169, allocations: 0.6063 MB / 0.6871 GB, free: 40.23 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004814/1.17, allocations: 281.8 kB / 0.6874 GB, free: 40.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/1.17, allocations: 3.031 kB / 0.6874 GB, free: 40.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002151/1.172, allocations: 1.13 MB / 0.6885 GB, free: 39.58 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.646e-05/1.172, allocations: 10.06 kB / 0.6885 GB, free: 39.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001249/1.172, allocations: 83.95 kB / 0.6886 GB, free: 39.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.679e-05/1.172, allocations: 25.17 kB / 0.6886 GB, free: 39.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/1.173, allocations: 216.9 kB / 0.6888 GB, free: 39.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.844e-05/1.173, allocations: 25.14 kB / 0.6888 GB, free: 39.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002548/1.176, allocations: 125.9 kB / 0.689 GB, free: 39.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/1.176, allocations: 66.88 kB / 0.689 GB, free: 39.42 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.0002211/1.176, allocations: 166.2 kB / 0.6892 GB, free: 39.26 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007322/1.177, allocations: 380 kB / 0.6895 GB, free: 39.07 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003361/1.18, allocations: 1.136 MB / 0.6906 GB, free: 38.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/1.18, allocations: 15.59 kB / 0.6907 GB, free: 38.49 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/1.18, allocations: 4 kB / 0.6907 GB, free: 38.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/1.18, allocations: 0 / 0.6907 GB, free: 38.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004808/1.185, allocations: 2.104 MB / 0.6927 GB, free: 37.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.761e-05/1.185, allocations: 77.39 kB / 0.6928 GB, free: 37.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004881/1.186, allocations: 102.1 kB / 0.6929 GB, free: 37.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.668e-06/1.186, allocations: 3.781 kB / 0.6929 GB, free: 37.09 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.27e-05/1.186, allocations: 39.17 kB / 0.6929 GB, free: 37.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/1.186, allocations: 3.938 kB / 0.6929 GB, free: 37.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/1.186, allocations: 3.812 kB / 0.6929 GB, free: 37.07 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/1.188, allocations: 1.205 MB / 0.6941 GB, free: 36.38 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/1.189, allocations: 0.5518 MB / 0.6947 GB, free: 35.92 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007176/1.19, allocations: 15.84 kB / 0.6947 GB, free: 35.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/1.191, allocations: 45.89 kB / 0.6947 GB, free: 35.89 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/1.191, allocations: 60.22 kB / 0.6948 GB, free: 35.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.061e-05/1.191, allocations: 37.67 kB / 0.6948 GB, free: 35.86 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003814/1.195, allocations: 1.907 MB / 0.6967 GB, free: 34.51 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.372e-06/1.195, allocations: 0 / 0.6967 GB, free: 34.51 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002258/1.197, allocations: 0.6516 MB / 0.6973 GB, free: 33.86 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.003327/1.201, allocations: 2.604 MB / 0.6999 GB, free: 31.38 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001123/1.202, allocations: 0.7159 MB / 0.7006 GB, free: 30.65 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/1.202, allocations: 0 / 0.7006 GB, free: 30.65 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004419/1.202, allocations: 391 kB / 0.7009 GB, free: 30.24 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003181/1.205, allocations: 0.5994 MB / 0.7015 GB, free: 29.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008774/1.214, allocations: 3.637 MB / 0.7051 GB, free: 25.96 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001308/1.216, allocations: 1.724 MB / 0.7067 GB, free: 24.21 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001565/1.217, allocations: 374.4 kB / 0.7071 GB, free: 23.84 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00115/1.218, allocations: 1.21 MB / 0.7083 GB, free: 22.63 MB / 442.7 MB Notification: Performance of SimCode: time 1.292e-06/1.218, allocations: 0 / 0.7083 GB, free: 22.63 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.374/1.592, allocations: 58.69 MB / 0.7656 GB, free: 88.36 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000252/1.593, allocations: 168.1 kB / 0.7658 GB, free: 88.13 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.591/6.183, allocations: 0 / 0.7658 GB, free: 88.13 MB / 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