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.001045/0.001045, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.2 MB / 245 MB, free: 7.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009966/0.0009964, allocations: 108.5 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002686/0.0002688, allocations: 8 kB / 358 MB, free: 9.449 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2661/0.2664, allocations: 51.49 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.3913, allocations: 105.1 MB / 0.5025 GB, free: 1.477 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001888/0.3915, allocations: 77.56 kB / 0.5026 GB, free: 1.402 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4323/0.8238, allocations: 141.5 MB / 0.6408 GB, free: 15.89 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.8239, allocations: 0 / 0.6408 GB, free: 15.89 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.94e-05/0.824, allocations: 48 kB / 0.6409 GB, free: 15.84 MB / 426.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.006261/0.8303, allocations: 3.419 MB / 0.6442 GB, free: 12.35 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.8303, allocations: 15.97 kB / 0.6442 GB, free: 12.34 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001645/0.8305, allocations: 106.4 kB / 0.6443 GB, free: 12.22 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004173/0.8309, allocations: 403.2 kB / 0.6447 GB, free: 11.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004019/0.8349, allocations: 2.367 MB / 0.647 GB, free: 9.383 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/0.835, allocations: 37 kB / 0.647 GB, free: 9.348 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.8351, allocations: 59.92 kB / 0.6471 GB, free: 9.289 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.8366, allocations: 0.8612 MB / 0.6479 GB, free: 8.391 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.8366, allocations: 0 / 0.6479 GB, free: 8.391 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-05/0.8367, allocations: 20 kB / 0.648 GB, free: 8.371 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.204e-05/0.8367, allocations: 19.98 kB / 0.648 GB, free: 8.352 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/0.8382, allocations: 0.8554 MB / 0.6488 GB, free: 7.496 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005901/0.8441, allocations: 3.182 MB / 0.6519 GB, free: 4.227 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.8453, allocations: 0.622 MB / 0.6525 GB, free: 3.598 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2813/1.127, allocations: 36.54 MB / 0.6882 GB, free: 72.49 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006988/1.127, allocations: 392.1 kB / 0.6886 GB, free: 72.44 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.725e-06/1.127, allocations: 0 / 0.6886 GB, free: 72.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002306/1.13, allocations: 1.468 MB / 0.69 GB, free: 71.86 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.473e-05/1.13, allocations: 275 kB / 0.6903 GB, free: 71.54 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003556/1.133, allocations: 2.54 MB / 0.6928 GB, free: 71.27 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.369e-05/1.133, allocations: 43.67 kB / 0.6928 GB, free: 71.23 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001127/1.135, allocations: 1.491 MB / 0.6943 GB, free: 71.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/1.135, allocations: 164.7 kB / 0.6944 GB, free: 70.94 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.184e-05/1.135, allocations: 13.12 kB / 0.6944 GB, free: 70.94 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.134e-05/1.135, allocations: 343.1 kB / 0.6948 GB, free: 70.63 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005309/1.135, allocations: 264.7 kB / 0.695 GB, free: 70.63 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007661/1.136, allocations: 0.6646 MB / 0.6957 GB, free: 70.11 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000651/1.137, allocations: 357.6 kB / 0.696 GB, free: 70.11 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/1.137, allocations: 3.438 kB / 0.696 GB, free: 70.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001853/1.139, allocations: 1.268 MB / 0.6972 GB, free: 69.89 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/1.139, allocations: 9.25 kB / 0.6972 GB, free: 69.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.273e-05/1.139, allocations: 81.02 kB / 0.6973 GB, free: 69.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.101e-05/1.139, allocations: 18.78 kB / 0.6973 GB, free: 69.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006661/1.14, allocations: 213.7 kB / 0.6975 GB, free: 69.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.303e-05/1.14, allocations: 27.33 kB / 0.6976 GB, free: 69.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/1.141, allocations: 119.4 kB / 0.6977 GB, free: 69.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.345e-05/1.141, allocations: 68.09 kB / 0.6978 GB, free: 69.86 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 () * Number of clocked 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.0006914/1.142, allocations: 442.3 kB / 0.6982 GB, free: 69.75 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002771/1.142, allocations: 385.7 kB / 0.6985 GB, free: 69.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002757/1.145, allocations: 1.278 MB / 0.6998 GB, free: 69.46 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/1.145, allocations: 10.62 kB / 0.6998 GB, free: 69.46 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/1.145, allocations: 0 / 0.6998 GB, free: 69.46 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/1.145, allocations: 0 / 0.6998 GB, free: 69.46 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003427/1.148, allocations: 2.244 MB / 0.702 GB, free: 69.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.368e-05/1.148, allocations: 69.09 kB / 0.7021 GB, free: 69.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000503/1.149, allocations: 104.2 kB / 0.7022 GB, free: 69.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.855e-06/1.149, allocations: 3.781 kB / 0.7022 GB, free: 69.08 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-05/1.149, allocations: 32.72 kB / 0.7022 GB, free: 69.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/1.149, allocations: 4.406 kB / 0.7022 GB, free: 69.08 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/1.149, allocations: 0 / 0.7022 GB, free: 69.08 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/1.151, allocations: 1.416 MB / 0.7036 GB, free: 68.64 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000908/1.152, allocations: 0.5572 MB / 0.7041 GB, free: 68.28 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002777/1.152, allocations: 9.312 kB / 0.7041 GB, free: 68.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007279/1.153, allocations: 49.3 kB / 0.7042 GB, free: 68.28 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/1.153, allocations: 67.77 kB / 0.7042 GB, free: 68.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-05/1.153, allocations: 37.17 kB / 0.7043 GB, free: 68.28 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002241/1.155, allocations: 1.945 MB / 0.7062 GB, free: 68.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.155, allocations: 0 / 0.7062 GB, free: 68.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001704/1.157, allocations: 0.6427 MB / 0.7068 GB, free: 68.09 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) * Number of clocked states: 0 () * 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.004487/1.161, allocations: 2.826 MB / 0.7096 GB, free: 67.03 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001663/1.163, allocations: 0.8476 MB / 0.7104 GB, free: 66.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/1.163, allocations: 0 / 0.7104 GB, free: 66.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006588/1.164, allocations: 468 kB / 0.7108 GB, free: 66.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002342/1.166, allocations: 0.5933 MB / 0.7114 GB, free: 66.74 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03374/1.2, allocations: 26.65 MB / 0.7374 GB, free: 48.41 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001333/1.201, allocations: 1.721 MB / 0.7391 GB, free: 47.68 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001623/1.203, allocations: 383.9 kB / 0.7395 GB, free: 47.66 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001168/1.204, allocations: 1.205 MB / 0.7407 GB, free: 47.65 MB / 442.7 MB Notification: Performance of SimCode: time 1.352e-06/1.204, allocations: 0 / 0.7407 GB, free: 47.65 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08845/1.292, allocations: 59.29 MB / 0.7986 GB, free: 9.035 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001678/1.293, allocations: 182.3 kB / 0.7987 GB, free: 8.797 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.119/5.412, allocations: 2.531 kB / 0.7987 GB, free: 8.797 MB / 442.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