Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 103.5 kB / 21.96 MB, free: 5.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 214.5 kB / 25.26 MB, free: 3.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.349/1.349, allocations: 207.7 MB / 236.1 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 51.92 kB / 348 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2556, allocations: 49.17 MB / 397.1 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006491/0.262, allocations: 6.645 MB / 403.8 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01866/0.2807, allocations: 15.87 MB / 419.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001523/0.2822, allocations: 99.06 kB / 419.7 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002358/0.2846, allocations: 0.7291 MB / 420.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006636/0.2912, allocations: 1.795 MB / 422.3 MB, free: 7.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004274/0.2955, allocations: 1.26 MB / 423.5 MB, free: 6.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005245/0.3007, allocations: 3.204 MB / 426.7 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003136/0.3011, allocations: 138.3 kB / 426.9 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007983/0.3019, allocations: 0.5418 MB / 427.4 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006666/0.3025, allocations: 0.5439 MB / 428 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.443e-05/0.3026, allocations: 40.97 kB / 428 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002938/0.3056, allocations: 1.1 MB / 429.1 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001688/0.3057, allocations: 166.8 kB / 429.3 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005505/0.3063, allocations: 0.5085 MB / 429.8 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002979/0.3093, allocations: 2.252 MB / 432 MB, free: 128 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3093, allocations: 4 kB / 432 MB, free: 124 kB / 334.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3093, allocations: 4 kB / 432 MB, free: 120 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.105e-05/0.3093, allocations: 0 / 432 MB, free: 120 kB / 334.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.002988/0.3123, allocations: 1.999 MB / 434 MB, free: 14.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.3123, allocations: 15.98 kB / 434 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.35e-05/0.3123, allocations: 12.64 kB / 434.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.197e-05/0.3124, allocations: 66.53 kB / 434.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002343/0.3127, allocations: 206.7 kB / 434.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001815/0.3145, allocations: 1.264 MB / 435.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.3145, allocations: 20.66 kB / 435.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.828e-05/0.3146, allocations: 31.92 kB / 435.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.3156, allocations: 437.9 kB / 436.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.3156, allocations: 3.984 kB / 436.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.122e-05/0.3157, allocations: 8 kB / 436.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.594e-05/0.3157, allocations: 15.98 kB / 436.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.3168, allocations: 474.4 kB / 436.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002553/0.3193, allocations: 1.492 MB / 438 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008711/0.3202, allocations: 343.4 kB / 438.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007026/0.3209, allocations: 377.6 kB / 438.7 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01247/0.3333, allocations: 6.984 MB / 445.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006681/0.334, allocations: 259.1 kB / 446 MB, free: 1.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.365e-06/0.334, allocations: 0 / 446 MB, free: 1.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002019/0.336, allocations: 0.7741 MB / 446.8 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.3361, allocations: 55.41 kB / 446.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001857/0.3379, allocations: 1.46 MB / 448.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.258e-05/0.338, allocations: 33.7 kB / 448.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006487/0.3386, allocations: 0.735 MB / 449 MB, free: 14.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.423e-05/0.3387, allocations: 95.17 kB / 449.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001813/0.3389, allocations: 130 kB / 449.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3391, allocations: 329.9 kB / 449.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004372/0.3395, allocations: 160.8 kB / 449.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005782/0.3401, allocations: 359.6 kB / 450.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.3411, allocations: 0.5411 MB / 450.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.3411, allocations: 4 kB / 450.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001412/0.3425, allocations: 0.7525 MB / 451.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.3426, allocations: 8 kB / 451.4 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.956e-05/0.3426, allocations: 40.09 kB / 451.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003165/0.3429, allocations: 136.8 kB / 451.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003901/0.3433, allocations: 107.8 kB / 451.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006642/0.344, allocations: 0.685 MB / 452.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005207/0.3445, allocations: 67.7 kB / 452.4 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.599e-05/0.3446, allocations: 39.94 kB / 452.5 MB, free: 10.93 MB / 366.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.0003689/0.345, allocations: 281.5 kB / 452.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001825/0.3451, allocations: 198.7 kB / 452.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001696/0.3468, allocations: 0.7463 MB / 453.7 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3468, allocations: 3.938 kB / 453.7 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.3468, allocations: 0 / 453.7 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.3468, allocations: 4 kB / 453.7 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/0.3489, allocations: 1.245 MB / 454.9 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.846e-05/0.349, allocations: 32.06 kB / 455 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002334/0.3492, allocations: 51.89 kB / 455 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002346/0.3494, allocations: 124.8 kB / 455.1 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-05/0.3495, allocations: 16 kB / 455.2 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005831/0.3501, allocations: 0.6733 MB / 455.8 MB, free: 7.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3501, allocations: 4.062 kB / 455.8 MB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001373/0.3514, allocations: 0.729 MB / 456.6 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003934/0.3518, allocations: 204.6 kB / 456.8 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.352, allocations: 20.11 kB / 456.8 MB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004146/0.3524, allocations: 23.97 kB / 456.8 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.3525, allocations: 39.95 kB / 456.8 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.093e-05/0.3526, allocations: 23.98 kB / 456.9 MB, free: 6.387 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001279/0.3539, allocations: 0.9653 MB / 457.8 MB, free: 5.402 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3539, allocations: 0 / 457.8 MB, free: 5.402 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000928/0.3548, allocations: 339.5 kB / 458.2 MB, free: 5.07 MB / 366.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.002406/0.3572, allocations: 1.745 MB / 459.9 MB, free: 3.289 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.3584, allocations: 0.4994 MB / 460.4 MB, free: 2.777 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3584, allocations: 1.125 kB / 460.4 MB, free: 2.777 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006196/0.359, allocations: 275.3 kB / 460.7 MB, free: 2.496 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009704/0.36, allocations: 262.8 kB / 460.9 MB, free: 2.234 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01302/0.373, allocations: 9.046 MB / 470 MB, free: 8.809 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005504/0.3736, allocations: 0.5628 MB / 470.5 MB, free: 8.207 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005341/0.3741, allocations: 199.9 kB / 470.7 MB, free: 8.008 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006192/0.3747, allocations: 0.5696 MB / 471.3 MB, free: 7.438 MB / 382.1 MB Notification: Performance of SimCode: time 1.493e-06/0.3747, allocations: 0 / 471.3 MB, free: 7.438 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07371/0.4484, allocations: 36.06 MB / 0.4955 GB, free: 3.254 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.34/15.79, allocations: 4.062 kB / 0.4955 GB, free: 3.25 MB / 414.1 MB " [Timeout remaining time 644] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --stepSize=5.0025e-15 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.189950220054016] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 15.983569703996181 16.009746951 15.695135694 Calling exit ...