Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 116.6 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 189 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] 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.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 47.94 kB / 366.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08755/0.08902, allocations: 52.15 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008074/0.09709, allocations: 7.527 MB / 426 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0139/0.111, allocations: 10.74 MB / 436.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.1121, allocations: 122.6 kB / 436.9 MB, free: 10.15 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001858/0.114, allocations: 0.7139 MB / 437.6 MB, free: 9.426 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003651/0.1176, allocations: 1.196 MB / 438.8 MB, free: 8.223 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001811/0.1194, allocations: 0.674 MB / 439.4 MB, free: 7.547 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003837/0.1233, allocations: 2.541 MB / 442 MB, free: 4.996 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003723/0.1236, allocations: 179.9 kB / 442.2 MB, free: 4.801 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006803/0.1243, allocations: 0.5172 MB / 442.7 MB, free: 4.281 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005747/0.1249, allocations: 0.5356 MB / 443.2 MB, free: 3.742 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.753e-05/0.125, allocations: 52 kB / 443.3 MB, free: 3.691 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001633/0.1266, allocations: 0.7727 MB / 444 MB, free: 2.918 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00016/0.1268, allocations: 178.8 kB / 444.2 MB, free: 2.742 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006172/0.1274, allocations: 0.6754 MB / 444.9 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002244/0.1296, allocations: 1.964 MB / 446.9 MB, free: 92 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.1296, allocations: 0 / 446.9 MB, free: 92 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1296, allocations: 0 / 446.9 MB, free: 92 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.744e-05/0.1297, allocations: 0 / 446.9 MB, free: 92 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.1746/0.3043, allocations: 2.041 MB / 448.9 MB, free: 30.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.3043, allocations: 9.969 kB / 448.9 MB, free: 30.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.147e-05/0.3044, allocations: 17.03 kB / 448.9 MB, free: 30.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.885e-05/0.3044, allocations: 88.38 kB / 449 MB, free: 30.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.3046, allocations: 204.9 kB / 449.2 MB, free: 30.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/0.306, allocations: 1.353 MB / 450.6 MB, free: 30.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.306, allocations: 30.25 kB / 450.6 MB, free: 30.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.284e-05/0.3061, allocations: 48.09 kB / 450.6 MB, free: 30.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008574/0.307, allocations: 0.5139 MB / 451.2 MB, free: 30.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.307, allocations: 2.812 kB / 451.2 MB, free: 30.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.654e-05/0.307, allocations: 20.19 kB / 451.2 MB, free: 30.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.891e-05/0.3071, allocations: 18.88 kB / 451.2 MB, free: 30.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008295/0.3079, allocations: 473.7 kB / 451.7 MB, free: 30.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002609/0.3105, allocations: 2.091 MB / 453.7 MB, free: 29.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000839/0.3113, allocations: 0.6441 MB / 454.4 MB, free: 29.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006515/0.312, allocations: 472.8 kB / 454.9 MB, free: 29.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006712/0.3187, allocations: 6.534 MB / 461.4 MB, free: 23.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005053/0.3192, allocations: 289.2 kB / 461.7 MB, free: 23.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 2.324e-06/0.3192, allocations: 3.688 kB / 461.7 MB, free: 23.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.003271/0.3225, allocations: 1.975 MB / 463.6 MB, free: 22.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.943e-05/0.3225, allocations: 58.16 kB / 463.7 MB, free: 22.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001418/0.3239, allocations: 1.305 MB / 465 MB, free: 21.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.593e-05/0.324, allocations: 40.39 kB / 465 MB, free: 21.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004127/0.3244, allocations: 0.7216 MB / 465.8 MB, free: 20.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.3245, allocations: 204.1 kB / 466 MB, free: 20.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.3247, allocations: 129.3 kB / 466.1 MB, free: 20.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.493e-05/0.3247, allocations: 332.5 kB / 466.4 MB, free: 20.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003872/0.3251, allocations: 194.3 kB / 466.6 MB, free: 20.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004469/0.3255, allocations: 369.7 kB / 467 MB, free: 20.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008252/0.3264, allocations: 0.5986 MB / 467.6 MB, free: 19.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3264, allocations: 0 / 467.6 MB, free: 19.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001439/0.3278, allocations: 0.9102 MB / 468.5 MB, free: 19.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.3278, allocations: 7.969 kB / 468.5 MB, free: 19.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-05/0.3279, allocations: 60.11 kB / 468.5 MB, free: 19.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003997/0.3283, allocations: 160.8 kB / 468.7 MB, free: 19.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004308/0.3287, allocations: 114.3 kB / 468.8 MB, free: 19.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00224/0.331, allocations: 2.526 MB / 471.3 MB, free: 17.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004835/0.3315, allocations: 29.16 kB / 471.4 MB, free: 17.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.783e-05/0.3315, allocations: 36.25 kB / 471.4 MB, free: 17.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 7 (v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 1 system {(4,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003383/0.3319, allocations: 271.8 kB / 471.7 MB, free: 17.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.332, allocations: 188.4 kB / 471.9 MB, free: 16.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001633/0.3336, allocations: 0.8861 MB / 472.7 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.3337, allocations: 4.562 kB / 472.7 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3337, allocations: 4.078 kB / 472.7 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.3337, allocations: 6.062 kB / 472.8 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.3347, allocations: 0.8678 MB / 473.6 MB, free: 16.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-05/0.3347, allocations: 56.98 kB / 473.7 MB, free: 16.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002978/0.335, allocations: 59.06 kB / 473.7 MB, free: 16.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003629/0.3354, allocations: 150.8 kB / 473.9 MB, free: 16.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.123e-05/0.3354, allocations: 25.03 kB / 473.9 MB, free: 16.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002186/0.3376, allocations: 2.501 MB / 476.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3376, allocations: 0.9062 kB / 476.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.3395, allocations: 1.071 MB / 477.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003446/0.3399, allocations: 259.4 kB / 477.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001219/0.34, allocations: 8.328 kB / 477.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003606/0.3403, allocations: 20.98 kB / 477.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.3405, allocations: 43.41 kB / 477.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.444e-05/0.3405, allocations: 23.17 kB / 477.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001052/0.3416, allocations: 0.8622 MB / 478.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3416, allocations: 4 kB / 478.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001008/0.3426, allocations: 374.3 kB / 479.1 MB, free: 12.87 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vbx,T2.vbe,T2.vbx) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * 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): 1 system {(4,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002486/0.3451, allocations: 1.976 MB / 481 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.3465, allocations: 0.8033 MB / 481.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3465, allocations: 1.375 kB / 481.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008312/0.3474, allocations: 0.5567 MB / 482.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009396/0.3483, allocations: 203.7 kB / 482.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/0.3584, allocations: 9.31 MB / 491.9 MB, free: 3.469 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.3588, allocations: 1.17 MB / 493.1 MB, free: 2.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004012/0.3592, allocations: 186.9 kB / 493.3 MB, free: 2.086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003897/0.3596, allocations: 0.5696 MB / 493.8 MB, free: 1.516 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3596, allocations: 3.938 kB / 493.8 MB, free: 1.512 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06639/0.426, allocations: 29.18 MB / 0.5108 GB, free: 4.574 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13/13.43, allocations: 12.95 kB / 0.5108 GB, free: 4.566 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.79897289298242] Failed to read output from testmodel.py, exit status != 0: ['time', 'T1.vbe', 'T2.vbe'] 13.58041004196275 13.594611242 13.461959696 Calling exit ...