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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001585/0.001585, allocations: 118.7 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001814/0.001814, allocations: 210.5 kB / 21.46 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 63.89 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.112, allocations: 53.32 MB / 426.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.2225/0.3344, allocations: 14.77 MB / 441.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02766/0.3621, allocations: 20.77 MB / 462.2 MB, free: 4.016 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003916/0.366, allocations: 89.25 kB / 462.3 MB, free: 3.969 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004542/0.3705, allocations: 1.24 MB / 463.5 MB, free: 3.316 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01053/0.3811, allocations: 2.329 MB / 465.8 MB, free: 1.891 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005876/0.387, allocations: 1.437 MB / 467.3 MB, free: 1.145 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01291/0.3999, allocations: 6.596 MB / 473.9 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008593/0.4007, allocations: 261.1 kB / 474.1 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002321/0.4031, allocations: 1.108 MB / 475.2 MB, free: 13.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001854/0.4049, allocations: 1.107 MB / 476.3 MB, free: 12.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001842/0.4051, allocations: 75.81 kB / 476.4 MB, free: 12.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004969/0.4101, allocations: 1.482 MB / 477.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004464/0.4105, allocations: 324.4 kB / 478.2 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001974/0.4125, allocations: 1.377 MB / 479.6 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006269/0.4187, allocations: 3.796 MB / 483.4 MB, free: 8.316 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.4188, allocations: 0 / 483.4 MB, free: 8.316 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4188, allocations: 0 / 483.4 MB, free: 8.316 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.51e-05/0.4188, allocations: 0 / 483.4 MB, free: 8.316 MB / 382.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.006529/0.4253, allocations: 3.808 MB / 487.2 MB, free: 4.426 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.4254, allocations: 8.031 kB / 487.2 MB, free: 4.418 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001591/0.4255, allocations: 103 kB / 487.3 MB, free: 4.309 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000711/0.4263, allocations: 413.4 kB / 487.7 MB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005783/0.432, allocations: 2.453 MB / 490.2 MB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.768e-05/0.4321, allocations: 41 kB / 490.2 MB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001915/0.4323, allocations: 49.5 kB / 490.3 MB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002151/0.4344, allocations: 0.7265 MB / 491 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.4345, allocations: 0 / 491 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/0.4346, allocations: 23.98 kB / 491 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.337e-05/0.4346, allocations: 16 kB / 491 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002572/0.4372, allocations: 0.8241 MB / 491.8 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008939/0.4461, allocations: 3.063 MB / 494.9 MB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001858/0.448, allocations: 0.5143 MB / 495.4 MB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001549/0.4495, allocations: 0.5657 MB / 496 MB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03952/0.489, allocations: 30.76 MB / 0.5144 GB, free: 8.449 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008044/0.4898, allocations: 363.6 kB / 0.5147 GB, free: 8.086 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.505e-06/0.4898, allocations: 0 / 0.5147 GB, free: 8.086 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002398/0.4922, allocations: 1.114 MB / 0.5158 GB, free: 6.961 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.252e-05/0.4923, allocations: 55.41 kB / 0.5159 GB, free: 6.895 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0039/0.4962, allocations: 2.943 MB / 0.5188 GB, free: 3.941 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.88e-05/0.4963, allocations: 33.7 kB / 0.5188 GB, free: 3.902 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001426/0.4977, allocations: 1.498 MB / 0.5203 GB, free: 2.395 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001751/0.4979, allocations: 174.5 kB / 0.5204 GB, free: 2.223 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003695/0.4982, allocations: 226.4 kB / 0.5206 GB, free: 1.996 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.4984, allocations: 345.9 kB / 0.521 GB, free: 1.652 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005673/0.499, allocations: 241.8 kB / 0.5212 GB, free: 1.418 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000875/0.4999, allocations: 0.602 MB / 0.5218 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.5014, allocations: 0.8973 MB / 0.5227 GB, free: 15.57 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.5014, allocations: 4 kB / 0.5227 GB, free: 15.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002412/0.5038, allocations: 1.243 MB / 0.5239 GB, free: 14.32 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.5038, allocations: 8 kB / 0.5239 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/0.504, allocations: 83.98 kB / 0.524 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.494e-05/0.504, allocations: 20 kB / 0.524 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007048/0.5047, allocations: 195.7 kB / 0.5242 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.863e-05/0.5047, allocations: 27.86 kB / 0.5242 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/0.506, allocations: 119.5 kB / 0.5243 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.5061, allocations: 64 kB / 0.5244 GB, free: 13.81 MB / 446.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 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008192/0.5069, allocations: 433.4 kB / 0.5248 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004026/0.5073, allocations: 397.5 kB / 0.5252 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002562/0.5099, allocations: 1.2 MB / 0.5263 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.5099, allocations: 4 kB / 0.5263 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.5099, allocations: 0 / 0.5263 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.5099, allocations: 3.984 kB / 0.5263 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003868/0.5138, allocations: 2.101 MB / 0.5284 GB, free: 9.602 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001081/0.5139, allocations: 71.94 kB / 0.5285 GB, free: 9.531 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004525/0.5143, allocations: 99.91 kB / 0.5286 GB, free: 9.434 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.5143, allocations: 4 kB / 0.5286 GB, free: 9.43 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.545e-05/0.5144, allocations: 32 kB / 0.5286 GB, free: 9.398 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.5144, allocations: 0.875 kB / 0.5286 GB, free: 9.398 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/0.5144, allocations: 4 kB / 0.5286 GB, free: 9.395 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002272/0.5167, allocations: 1.31 MB / 0.5299 GB, free: 8.055 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.5177, allocations: 494.4 kB / 0.5304 GB, free: 7.551 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002659/0.518, allocations: 15.98 kB / 0.5304 GB, free: 7.535 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006231/0.5186, allocations: 27.97 kB / 0.5304 GB, free: 7.508 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.5187, allocations: 59.89 kB / 0.5305 GB, free: 7.449 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.647e-05/0.5188, allocations: 43.92 kB / 0.5305 GB, free: 7.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002536/0.5213, allocations: 1.907 MB / 0.5324 GB, free: 5.504 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5213, allocations: 4.062 kB / 0.5324 GB, free: 5.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001348/0.5227, allocations: 0.5852 MB / 0.5329 GB, free: 4.914 MB / 446.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003768/0.5265, allocations: 2.546 MB / 0.5354 GB, free: 2.336 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001704/0.5282, allocations: 0.7786 MB / 0.5362 GB, free: 1.531 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.5282, allocations: 3.938 kB / 0.5362 GB, free: 1.527 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000781/0.5289, allocations: 423.7 kB / 0.5366 GB, free: 1.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002498/0.5314, allocations: 0.6233 MB / 0.5372 GB, free: 476 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02472/0.5562, allocations: 16.45 MB / 0.5533 GB, free: 15.48 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001346/0.5575, allocations: 1.661 MB / 0.5549 GB, free: 13.79 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001049/0.5586, allocations: 357.1 kB / 0.5552 GB, free: 13.44 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001352/0.5599, allocations: 1.21 MB / 0.5564 GB, free: 12.23 MB / 478.1 MB Notification: Performance of SimCode: time 1.553e-06/0.5599, allocations: 0 / 0.5564 GB, free: 12.23 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3134/0.8733, allocations: 61.14 MB / 0.6161 GB, free: 164.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.8/17.67, allocations: 10.78 kB / 0.6161 GB, free: 164.2 MB / 0.5137 GB " [Timeout remaining time 642] (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/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 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.266062477137893] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp1.S.v', 'mp2.S.v', 'v.p.v'] 17.783416052814573 17.803675054 17.380802282 Calling exit ...