Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008309/0.0008309, allocations: 87.75 kB / 16.31 MB, free: 6.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008809/0.0008808, allocations: 174.6 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 223.2 MB / 241.2 MB, free: 320 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002823/0.0002826, allocations: 4 kB / 300.9 MB, free: 6.367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1065, allocations: 50.42 MB / 351.3 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01174/0.1183, allocations: 13.02 MB / 364.3 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2371/0.3554, allocations: 18.86 MB / 383.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003151/0.3586, allocations: 28.66 kB / 383.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004647/0.3633, allocations: 0.9693 MB / 384.2 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01327/0.3766, allocations: 1.836 MB / 386 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006688/0.3833, allocations: 1.114 MB / 387.1 MB, free: 7.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0123/0.3957, allocations: 6.055 MB / 393.2 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001173/0.3969, allocations: 417 kB / 393.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002759/0.3997, allocations: 0.9515 MB / 394.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002415/0.4021, allocations: 1.015 MB / 395.6 MB, free: 5.035 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000382/0.4025, allocations: 43 kB / 395.6 MB, free: 5.035 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006165/0.4087, allocations: 1.328 MB / 396.9 MB, free: 4.859 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006331/0.4094, allocations: 278.8 kB / 397.2 MB, free: 4.703 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001568/0.4109, allocations: 0.6209 MB / 397.8 MB, free: 4.551 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003828/0.4148, allocations: 2.687 MB / 400.5 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4148, allocations: 0 / 400.5 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.4148, allocations: 3.094 kB / 400.5 MB, free: 3.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.00013/0.415, allocations: 0 / 400.5 MB, free: 3.027 MB / 302.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.005266/0.4202, allocations: 3.253 MB / 403.8 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.4203, allocations: 8.75 kB / 403.8 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001895/0.4205, allocations: 105 kB / 403.9 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006436/0.4212, allocations: 398.4 kB / 404.3 MB, free: 380 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004367/0.4255, allocations: 2.274 MB / 406.6 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.015e-05/0.4256, allocations: 40.98 kB / 406.6 MB, free: 14.19 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.4257, allocations: 52 kB / 406.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.4271, allocations: 0.746 MB / 407.4 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.4272, allocations: 0 / 407.4 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.627e-05/0.4272, allocations: 20 kB / 407.4 MB, free: 13.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.746e-05/0.4273, allocations: 19.98 kB / 407.4 MB, free: 13.35 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.4288, allocations: 0.8631 MB / 408.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005795/0.4346, allocations: 3.071 MB / 411.4 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.4358, allocations: 0.622 MB / 412 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009597/0.4367, allocations: 0.6682 MB / 412.7 MB, free: 8.023 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02693/0.4637, allocations: 30.15 MB / 442.8 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007263/0.4645, allocations: 389.4 kB / 443.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.675e-06/0.4645, allocations: 0 / 443.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002261/0.4667, allocations: 1.144 MB / 444.3 MB, free: 4.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.736e-05/0.4668, allocations: 67.34 kB / 444.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003412/0.4702, allocations: 2.896 MB / 447.3 MB, free: 1.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.957e-05/0.4703, allocations: 33.7 kB / 447.3 MB, free: 1.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001182/0.4715, allocations: 1.485 MB / 448.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.4717, allocations: 173.7 kB / 449 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.643e-05/0.4718, allocations: 16 kB / 449 MB, free: 15.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.4719, allocations: 341.9 kB / 449.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005693/0.4725, allocations: 257.9 kB / 449.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007349/0.4732, allocations: 0.6216 MB / 450.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000627/0.4739, allocations: 344.4 kB / 450.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.4739, allocations: 4 kB / 450.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002127/0.476, allocations: 1.269 MB / 451.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.476, allocations: 16.22 kB / 451.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/0.4762, allocations: 83.98 kB / 451.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.008e-05/0.4762, allocations: 16 kB / 451.9 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006758/0.4769, allocations: 214.9 kB / 452.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.585e-05/0.4769, allocations: 24.58 kB / 452.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.478, allocations: 119.1 kB / 452.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.4781, allocations: 68 kB / 452.3 MB, free: 11.98 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.0008171/0.479, allocations: 440.7 kB / 452.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004186/0.4794, allocations: 379.4 kB / 453.1 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00295/0.4823, allocations: 1.236 MB / 454.4 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.4824, allocations: 8 kB / 454.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.4824, allocations: 0 / 454.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.4824, allocations: 3.984 kB / 454.4 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003409/0.4858, allocations: 2.135 MB / 456.5 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001105/0.4859, allocations: 68 kB / 456.6 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004701/0.4864, allocations: 107.9 kB / 456.7 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.061e-05/0.4864, allocations: 4 kB / 456.7 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.633e-05/0.4865, allocations: 31.98 kB / 456.7 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.4865, allocations: 0 / 456.7 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.4865, allocations: 4 kB / 456.7 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/0.4888, allocations: 1.355 MB / 458.1 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008524/0.4897, allocations: 472.3 kB / 458.6 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003337/0.49, allocations: 15.98 kB / 458.6 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006441/0.4907, allocations: 43.95 kB / 458.6 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.4908, allocations: 59.94 kB / 458.7 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.518e-05/0.4909, allocations: 40.06 kB / 458.7 MB, free: 5.469 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00253/0.4934, allocations: 1.868 MB / 460.6 MB, free: 3.602 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4935, allocations: 0 / 460.6 MB, free: 3.602 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001853/0.4953, allocations: 0.5816 MB / 461.2 MB, free: 3.02 MB / 366.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.003748/0.4991, allocations: 2.559 MB / 463.7 MB, free: 436 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.5008, allocations: 0.8569 MB / 464.6 MB, free: 15.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.5008, allocations: 0 / 464.6 MB, free: 15.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007348/0.5015, allocations: 479 kB / 465 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002935/0.5045, allocations: 0.588 MB / 465.6 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03649/0.541, allocations: 18.26 MB / 483.9 MB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/0.5422, allocations: 1.665 MB / 485.6 MB, free: 8.555 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00155/0.5438, allocations: 357.1 kB / 485.9 MB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/0.5452, allocations: 1.21 MB / 487.1 MB, free: 6.992 MB / 398.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5452, allocations: 0 / 487.1 MB, free: 6.992 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2979/0.8431, allocations: 56.7 MB / 0.5311 GB, free: 145.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001582/0.8433, allocations: 197.6 kB / 0.5313 GB, free: 145.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.625/4.469, allocations: 0 / 0.5313 GB, free: 145.7 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat