Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.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.001699/0.001699, allocations: 108.4 kB / 21.17 MB, free: 0.7852 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.002091/0.002091, allocations: 217.3 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.489/1.489, allocations: 230.4 MB / 258.1 MB, free: 8.137 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002046/0.002046, allocations: 75.81 kB / 378.7 MB, free: 2.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3044, allocations: 53.32 MB / 432 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009762/0.3142, allocations: 8.085 MB / 440.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02524/0.3394, allocations: 19.54 MB / 459.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001644/0.3411, allocations: 67.44 kB / 459.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002954/0.344, allocations: 0.8454 MB / 460.6 MB, free: 10.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006996/0.351, allocations: 1.837 MB / 462.4 MB, free: 8.891 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00498/0.356, allocations: 1.359 MB / 463.8 MB, free: 7.527 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006565/0.3626, allocations: 3.308 MB / 467.1 MB, free: 4.207 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004577/0.363, allocations: 128.7 kB / 467.2 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001084/0.3641, allocations: 0.5677 MB / 467.8 MB, free: 3.488 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008007/0.3649, allocations: 0.5591 MB / 468.3 MB, free: 2.926 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001036/0.365, allocations: 40 kB / 468.4 MB, free: 2.887 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004636/0.3696, allocations: 1.447 MB / 469.8 MB, free: 1.438 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002434/0.3699, allocations: 170.8 kB / 470 MB, free: 1.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000844/0.3707, allocations: 0.6832 MB / 470.7 MB, free: 0.582 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004543/0.3753, allocations: 2.217 MB / 472.9 MB, free: 14.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.3753, allocations: 4 kB / 472.9 MB, free: 14.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3753, allocations: 0 / 472.9 MB, free: 14.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.459e-05/0.3753, allocations: 4 kB / 472.9 MB, free: 14.35 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003596/0.3789, allocations: 2.074 MB / 475 MB, free: 12.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.3789, allocations: 8.031 kB / 475 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002541/0.3792, allocations: 202.7 kB / 475.2 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002037/0.3812, allocations: 1.356 MB / 476.5 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.3813, allocations: 20.55 kB / 476.5 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.732e-05/0.3813, allocations: 35.88 kB / 476.6 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009415/0.3823, allocations: 437.1 kB / 477 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.3823, allocations: 3.938 kB / 477 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.207e-05/0.3823, allocations: 11.98 kB / 477 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.3824, allocations: 8 kB / 477 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.3835, allocations: 478.1 kB / 477.5 MB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003021/0.3865, allocations: 1.619 MB / 479.1 MB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009409/0.3875, allocations: 343.4 kB / 479.5 MB, free: 7.562 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007403/0.3882, allocations: 369.8 kB / 479.8 MB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01813/0.4063, allocations: 15.53 MB / 495.3 MB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00068/0.407, allocations: 263.7 kB / 495.6 MB, free: 5.254 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.675e-06/0.407, allocations: 0 / 495.6 MB, free: 5.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002353/0.4094, allocations: 0.8418 MB / 496.4 MB, free: 4.383 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/0.4094, allocations: 59.34 kB / 496.5 MB, free: 4.312 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001987/0.4114, allocations: 1.455 MB / 498 MB, free: 2.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.262e-05/0.4115, allocations: 33.7 kB / 498 MB, free: 2.781 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006716/0.4121, allocations: 0.7232 MB / 498.7 MB, free: 2.055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.4122, allocations: 95.22 kB / 498.8 MB, free: 1.961 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001965/0.4124, allocations: 134.1 kB / 498.9 MB, free: 1.824 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.4126, allocations: 326 kB / 499.3 MB, free: 1.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000471/0.4131, allocations: 157 kB / 499.4 MB, free: 1.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006279/0.4137, allocations: 363.4 kB / 499.8 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.4148, allocations: 0.5333 MB / 0.4886 GB, free: 280 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.4148, allocations: 0 / 0.4886 GB, free: 280 kB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001649/0.4164, allocations: 0.7565 MB / 0.4893 GB, free: 15.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.4165, allocations: 10.66 kB / 0.4893 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.191e-05/0.4166, allocations: 52 kB / 0.4894 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003184/0.4169, allocations: 132.8 kB / 0.4895 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004379/0.4173, allocations: 107.8 kB / 0.4896 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006838/0.418, allocations: 0.6773 MB / 0.4903 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006571/0.4187, allocations: 71.59 kB / 0.4903 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.082e-05/0.4187, allocations: 39.94 kB / 0.4904 GB, free: 14.39 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004866/0.4192, allocations: 269.6 kB / 0.4906 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002267/0.4194, allocations: 198.7 kB / 0.4908 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/0.4213, allocations: 0.7386 MB / 0.4915 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.4213, allocations: 8 kB / 0.4915 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.4213, allocations: 0 / 0.4915 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.4213, allocations: 0 / 0.4915 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002425/0.4237, allocations: 1.311 MB / 0.4928 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.567e-05/0.4238, allocations: 36 kB / 0.4929 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002577/0.424, allocations: 43.94 kB / 0.4929 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002645/0.4243, allocations: 132.8 kB / 0.493 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.347e-05/0.4243, allocations: 23.92 kB / 0.4931 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006189/0.425, allocations: 0.654 MB / 0.4937 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.425, allocations: 11.95 kB / 0.4937 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.4264, allocations: 0.7141 MB / 0.4944 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005311/0.4269, allocations: 287.8 kB / 0.4947 GB, free: 9.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.4271, allocations: 11.98 kB / 0.4947 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004201/0.4275, allocations: 23.97 kB / 0.4947 GB, free: 9.785 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.4276, allocations: 47.83 kB / 0.4948 GB, free: 9.738 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.663e-05/0.4276, allocations: 20 kB / 0.4948 GB, free: 9.719 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001354/0.429, allocations: 0.961 MB / 0.4957 GB, free: 8.738 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.429, allocations: 0 / 0.4957 GB, free: 8.738 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009221/0.4299, allocations: 335.6 kB / 0.496 GB, free: 8.41 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008806/0.4308, allocations: 0.577 MB / 0.4966 GB, free: 7.816 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.4322, allocations: 0.5038 MB / 0.4971 GB, free: 7.305 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.46e-05/0.4322, allocations: 0 / 0.4971 GB, free: 7.305 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006775/0.4329, allocations: 279.1 kB / 0.4974 GB, free: 7.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/0.4342, allocations: 319 kB / 0.4977 GB, free: 6.703 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004139/0.4384, allocations: 2.238 MB / 0.4998 GB, free: 4.422 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008817/0.4393, allocations: 1.153 MB / 0.501 GB, free: 3.238 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006126/0.4399, allocations: 203.9 kB / 0.5012 GB, free: 3.035 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.44, allocations: 87.44 kB / 0.5012 GB, free: 2.949 MB / 414.1 MB Notification: Performance of SimCode: time 2.485e-06/0.44, allocations: 0 / 0.5012 GB, free: 2.949 MB / 414.1 MB Notification: Performance of Templates: time 0.03673/0.4768, allocations: 20.14 MB / 0.5209 GB, free: 14.96 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 5.237930452916771] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 0.4861870692111552 0.500564106 0.122044858 Calling exit ...