Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.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.001602/0.001602, allocations: 120.4 kB / 18.5 MB, free: 4.578 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.002173/0.002173, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.54/1.54, 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.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 71.88 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1029, allocations: 53.32 MB / 426.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2187/0.3217, allocations: 26.8 MB / 453.5 MB, free: 10.4 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03182/0.3535, allocations: 22.43 MB / 475.9 MB, free: 9.777 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005964/0.3594, allocations: 178.6 kB / 476.1 MB, free: 9.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005584/0.365, allocations: 1.79 MB / 477.9 MB, free: 8.488 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01328/0.3783, allocations: 3.249 MB / 481.1 MB, free: 5.809 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006516/0.3848, allocations: 1.623 MB / 482.7 MB, free: 4.543 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02194/0.4068, allocations: 12.87 MB / 495.6 MB, free: 12.1 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001332/0.4081, allocations: 0.5116 MB / 496.1 MB, free: 11.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004027/0.4121, allocations: 2.111 MB / 498.2 MB, free: 9.438 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003648/0.4158, allocations: 2.103 MB / 0.4886 GB, free: 7.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005339/0.4163, allocations: 136 kB / 0.4887 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005683/0.422, allocations: 1.537 MB / 0.4902 GB, free: 5.648 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008313/0.4228, allocations: 0.5971 MB / 0.4908 GB, free: 5.047 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004089/0.4269, allocations: 2.624 MB / 0.4934 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01142/0.4383, allocations: 6.671 MB / 0.4999 GB, free: 11.7 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.4383, allocations: 0 / 0.4999 GB, free: 11.7 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4383, allocations: 0 / 0.4999 GB, free: 11.7 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001675/0.4385, allocations: 0 / 0.4999 GB, free: 11.7 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01151/0.45, allocations: 6.93 MB / 0.5067 GB, free: 4.672 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.4501, allocations: 16.03 kB / 0.5067 GB, free: 4.656 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002337/0.4503, allocations: 157.2 kB / 0.5068 GB, free: 4.492 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001112/0.4514, allocations: 0.7841 MB / 0.5076 GB, free: 3.703 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007948/0.4594, allocations: 4.648 MB / 0.5121 GB, free: 14.97 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.302e-05/0.4594, allocations: 69.98 kB / 0.5122 GB, free: 14.9 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002576/0.4597, allocations: 111.8 kB / 0.5123 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002326/0.462, allocations: 1.301 MB / 0.5136 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.462, allocations: 0 / 0.5136 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/0.4622, allocations: 32 kB / 0.5136 GB, free: 13.45 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-05/0.4622, allocations: 43.97 kB / 0.5136 GB, free: 13.4 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002584/0.4648, allocations: 1.48 MB / 0.5151 GB, free: 11.92 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01097/0.4757, allocations: 5.624 MB / 0.5206 GB, free: 6.203 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001728/0.4775, allocations: 0.8607 MB / 0.5214 GB, free: 5.332 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001605/0.4791, allocations: 1.056 MB / 0.5225 GB, free: 4.281 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06755/0.5466, allocations: 61.07 MB / 0.5821 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001062/0.5477, allocations: 0.5574 MB / 0.5826 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=85): time 3.005e-06/0.5477, allocations: 0 / 0.5826 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85): time 0.003747/0.5514, allocations: 1.922 MB / 0.5845 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.5515, allocations: 59.97 kB / 0.5846 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007889/0.5594, allocations: 5.586 MB / 0.59 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001721/0.5596, allocations: 41.7 kB / 0.5901 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002879/0.5624, allocations: 2.965 MB / 0.593 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004117/0.5628, allocations: 313.4 kB / 0.5933 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005868/0.5634, allocations: 427 kB / 0.5937 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.5636, allocations: 305.1 kB / 0.594 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008849/0.5645, allocations: 399.8 kB / 0.5943 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.5658, allocations: 1.099 MB / 0.5954 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002389/0.5682, allocations: 1.607 MB / 0.597 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.329e-05/0.5682, allocations: 8 kB / 0.597 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004134/0.5724, allocations: 2.242 MB / 0.5992 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.5724, allocations: 12 kB / 0.5992 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002339/0.5726, allocations: 167.9 kB / 0.5994 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.576e-05/0.5727, allocations: 32 kB / 0.5994 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/0.5739, allocations: 359.6 kB / 0.5997 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.138e-05/0.5739, allocations: 48.72 kB / 0.5998 GB, free: 11.92 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001956/0.5759, allocations: 194.7 kB / 0.6 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002047/0.5761, allocations: 124 kB / 0.6001 GB, free: 11.61 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001448/0.5775, allocations: 0.7082 MB / 0.6008 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/0.5785, allocations: 0.7501 MB / 0.6015 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004608/0.5831, allocations: 2.162 MB / 0.6036 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.5832, allocations: 8 kB / 0.6036 GB, free: 7.961 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.5832, allocations: 0 / 0.6036 GB, free: 7.961 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.575e-06/0.5832, allocations: 3.984 kB / 0.6036 GB, free: 7.957 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006309/0.5895, allocations: 3.607 MB / 0.6071 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002028/0.5897, allocations: 140 kB / 0.6073 GB, free: 4.141 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007508/0.5904, allocations: 156.6 kB / 0.6074 GB, free: 3.988 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.546e-06/0.5904, allocations: 7.938 kB / 0.6074 GB, free: 3.98 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.5905, allocations: 60 kB / 0.6075 GB, free: 3.922 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/0.5905, allocations: 4.047 kB / 0.6075 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.5906, allocations: 8 kB / 0.6075 GB, free: 3.91 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00356/0.5941, allocations: 2.185 MB / 0.6096 GB, free: 1.699 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001871/0.596, allocations: 0.8514 MB / 0.6105 GB, free: 0.8242 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006181/0.5966, allocations: 16.88 kB / 0.6105 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.5977, allocations: 39.95 kB / 0.6105 GB, free: 0.7695 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002348/0.5979, allocations: 104.4 kB / 0.6106 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/0.5981, allocations: 64 kB / 0.6107 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005443/0.6035, allocations: 3.612 MB / 0.6142 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6035, allocations: 0 / 0.6142 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002531/0.606, allocations: 1.089 MB / 0.6153 GB, free: 11.93 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.005666/0.6117, allocations: 3.837 MB / 0.619 GB, free: 8.055 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002516/0.6142, allocations: 1.364 MB / 0.6204 GB, free: 6.652 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.6142, allocations: 1.375 kB / 0.6204 GB, free: 6.652 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.6154, allocations: 0.7355 MB / 0.6211 GB, free: 5.863 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004872/0.6203, allocations: 1.198 MB / 0.6222 GB, free: 4.672 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2539/0.8741, allocations: 30.57 MB / 0.6521 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002132/0.8763, allocations: 2.597 MB / 0.6546 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002077/0.8784, allocations: 0.6838 MB / 0.6553 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001729/0.8801, allocations: 2.393 MB / 0.6576 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.473e-06/0.8801, allocations: 0 / 0.6576 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1588/1.039, allocations: 111.6 MB / 0.7666 GB, free: 66.18 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.78/26.82, allocations: 4 kB / 0.7666 GB, free: 66.18 MB / 0.5294 GB " [Timeout remaining time 633] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 29.820222219917923] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp1.S.v', 'mp2.S.v', 'mp3.S.v', 'mp4.S.v', 'v.p.v'] 26.970949823968112 26.987708528 26.545809882 Calling exit ...