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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0007865/0.0007864, allocations: 98.86 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008319/0.000832, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003375, allocations: 4 kB / 306.8 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1156, allocations: 51.49 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01216/0.1278, allocations: 13.03 MB / 371.3 MB, free: 0.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2534/0.3812, allocations: 18.9 MB / 390.2 MB, free: 3.492 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003268/0.3845, allocations: 29.88 kB / 390.3 MB, free: 3.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00435/0.3889, allocations: 0.9746 MB / 391.2 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01144/0.4004, allocations: 1.838 MB / 393.1 MB, free: 1.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007632/0.4081, allocations: 1.113 MB / 394.2 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01336/0.4215, allocations: 6.131 MB / 400.3 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001148/0.4227, allocations: 416.5 kB / 400.7 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002293/0.425, allocations: 0.9578 MB / 401.7 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001749/0.4268, allocations: 1.005 MB / 402.7 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002482/0.427, allocations: 43.09 kB / 402.7 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005517/0.4325, allocations: 1.341 MB / 404.1 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004942/0.4331, allocations: 271 kB / 404.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001413/0.4345, allocations: 0.6222 MB / 405 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003508/0.438, allocations: 2.688 MB / 407.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.438, allocations: 0 / 407.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4381, allocations: 0 / 407.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.402e-05/0.4382, allocations: 0 / 407.6 MB, free: 10.71 MB / 318.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.005398/0.4436, allocations: 3.263 MB / 410.9 MB, free: 7.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.4436, allocations: 12.03 kB / 410.9 MB, free: 7.637 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001884/0.4438, allocations: 102.5 kB / 411 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005181/0.4443, allocations: 395.2 kB / 411.4 MB, free: 7.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003606/0.448, allocations: 2.258 MB / 413.7 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.604e-05/0.448, allocations: 44.94 kB / 413.7 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.4482, allocations: 52 kB / 413.8 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.4495, allocations: 0.7421 MB / 414.5 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.4496, allocations: 4 kB / 414.5 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.551e-05/0.4497, allocations: 20 kB / 414.5 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.619e-05/0.4497, allocations: 19.98 kB / 414.5 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.4512, allocations: 0.8593 MB / 415.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005627/0.4569, allocations: 3.082 MB / 418.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.4581, allocations: 0.6181 MB / 419.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009907/0.4592, allocations: 0.6642 MB / 419.8 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03038/0.4896, allocations: 30.78 MB / 450.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007611/0.4904, allocations: 385.5 kB / 450.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.474e-06/0.4904, allocations: 0 / 450.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002257/0.4926, allocations: 1.155 MB / 452.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.4927, allocations: 67.17 kB / 452.1 MB, free: 9.938 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003527/0.4963, allocations: 2.896 MB / 455 MB, free: 7.031 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.475e-05/0.4964, allocations: 33.7 kB / 455.1 MB, free: 6.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001206/0.4976, allocations: 1.486 MB / 456.6 MB, free: 5.496 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/0.4978, allocations: 169.6 kB / 456.7 MB, free: 5.328 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.984e-05/0.4978, allocations: 19.94 kB / 456.7 MB, free: 5.309 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.4979, allocations: 337.9 kB / 457.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005595/0.4985, allocations: 261.9 kB / 457.3 MB, free: 4.719 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007549/0.4993, allocations: 0.6215 MB / 458 MB, free: 3.918 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006366/0.4999, allocations: 344.5 kB / 458.3 MB, free: 3.582 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.545e-06/0.4999, allocations: 4 kB / 458.3 MB, free: 3.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002145/0.5021, allocations: 1.265 MB / 459.6 MB, free: 2.301 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/0.5021, allocations: 10.5 kB / 459.6 MB, free: 2.293 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001185/0.5023, allocations: 83.98 kB / 459.6 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.084e-05/0.5023, allocations: 20 kB / 459.7 MB, free: 2.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006815/0.503, allocations: 221.8 kB / 459.9 MB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.514e-05/0.503, allocations: 23.94 kB / 459.9 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001177/0.5042, allocations: 115.1 kB / 460 MB, free: 1.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.5043, allocations: 68 kB / 460.1 MB, free: 1.773 MB / 366.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 () * 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.0008307/0.5052, allocations: 438 kB / 460.5 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004712/0.5057, allocations: 379.4 kB / 460.9 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003024/0.5087, allocations: 1.229 MB / 462.1 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.5087, allocations: 11.94 kB / 462.1 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.5087, allocations: 3.953 kB / 462.1 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.5088, allocations: 3.984 kB / 462.1 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003678/0.5124, allocations: 2.135 MB / 464.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001/0.5126, allocations: 72.06 kB / 464.3 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004533/0.513, allocations: 103.8 kB / 464.4 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.106e-05/0.5131, allocations: 7.938 kB / 464.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.439e-05/0.5131, allocations: 32 kB / 464.5 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/0.5131, allocations: 8.875 kB / 464.5 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.5132, allocations: 0 / 464.5 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/0.5156, allocations: 1.355 MB / 465.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.5166, allocations: 472.3 kB / 466.3 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003546/0.517, allocations: 11.95 kB / 466.3 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006766/0.5176, allocations: 48.02 kB / 466.4 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.5178, allocations: 63.88 kB / 466.4 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.393e-05/0.5179, allocations: 43.98 kB / 466.5 MB, free: 11.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002761/0.5207, allocations: 1.868 MB / 468.3 MB, free: 9.383 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5207, allocations: 0 / 468.3 MB, free: 9.383 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002043/0.5227, allocations: 0.5816 MB / 468.9 MB, free: 8.801 MB / 382.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) * 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.004433/0.5272, allocations: 2.569 MB / 471.5 MB, free: 6.195 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001725/0.529, allocations: 0.8492 MB / 472.3 MB, free: 5.324 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.529, allocations: 0 / 472.3 MB, free: 5.324 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000765/0.5297, allocations: 467.2 kB / 472.8 MB, free: 4.844 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003376/0.5331, allocations: 0.5874 MB / 473.4 MB, free: 4.254 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04251/0.5757, allocations: 18.26 MB / 491.6 MB, free: 44 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001164/0.5769, allocations: 1.661 MB / 493.3 MB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00152/0.5784, allocations: 357.1 kB / 493.7 MB, free: 14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001289/0.5797, allocations: 1.21 MB / 494.9 MB, free: 12.79 MB / 414.1 MB Notification: Performance of SimCode: time 1.372e-06/0.5797, allocations: 0 / 494.9 MB, free: 12.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3061/0.8858, allocations: 56.73 MB / 0.5387 GB, free: 147.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002101/0.8861, allocations: 187.1 kB / 0.5388 GB, free: 147.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.772/4.658, allocations: 1.656 kB / 0.5388 GB, free: 147.1 MB / 446.1 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