Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.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.001235/0.001235, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.005814/0.005814, allocations: 166.2 kB / 24.7 MB, free: 8.887 MB / 18.57 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 0.9008/0.9008, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] 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.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 298.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.638e-05/1.782e-05, allocations: 2.281 kB / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1301/0.1301, allocations: 11.41 MB / 309.8 MB, free: 9.266 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01618/0.1463, allocations: 16.74 MB / 326.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003778/0.15, allocations: 193 kB / 326.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003246/0.1533, allocations: 1.011 MB / 327.8 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007317/0.1606, allocations: 2.372 MB / 330.2 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004038/0.1646, allocations: 1.393 MB / 331.5 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007463/0.1721, allocations: 6.486 MB / 338 MB, free: 7.062 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005806/0.1727, allocations: 249.1 kB / 338.3 MB, free: 6.789 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00184/0.1745, allocations: 1.418 MB / 339.7 MB, free: 5.367 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006786/0.1752, allocations: 0.7513 MB / 340.4 MB, free: 4.613 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.1753, allocations: 76 kB / 340.5 MB, free: 4.539 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003224/0.1785, allocations: 1.085 MB / 341.6 MB, free: 3.449 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002143/0.1787, allocations: 325.6 kB / 341.9 MB, free: 3.129 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008769/0.1796, allocations: 0.7242 MB / 342.6 MB, free: 2.402 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004774/0.1844, allocations: 3.717 MB / 346.4 MB, free: 14.67 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1844, allocations: 0 / 346.4 MB, free: 14.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1844, allocations: 4 kB / 346.4 MB, free: 14.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.049e-05/0.1844, allocations: 0 / 346.4 MB, free: 14.67 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.003357/0.1878, allocations: 3.59 MB / 350 MB, free: 11.02 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.1878, allocations: 11.98 kB / 350 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.898e-05/0.1879, allocations: 98.5 kB / 350.1 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002534/0.1882, allocations: 402.8 kB / 350.5 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00225/0.1904, allocations: 2.39 MB / 352.9 MB, free: 8.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.1905, allocations: 41.61 kB / 352.9 MB, free: 7.977 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.344e-05/0.1905, allocations: 51.94 kB / 352.9 MB, free: 7.926 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008924/0.1914, allocations: 0.7577 MB / 353.7 MB, free: 7.164 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1914, allocations: 0 / 353.7 MB, free: 7.164 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.743e-05/0.1915, allocations: 20 kB / 353.7 MB, free: 7.145 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.1915, allocations: 19.98 kB / 353.7 MB, free: 7.125 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.1925, allocations: 0.8553 MB / 354.6 MB, free: 6.273 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003233/0.1958, allocations: 2.775 MB / 357.4 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009865/0.1967, allocations: 0.7189 MB / 358.1 MB, free: 2.719 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008735/0.1976, allocations: 0.8768 MB / 359 MB, free: 1.832 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01535/0.213, allocations: 13.69 MB / 372.7 MB, free: 3.77 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007669/0.2137, allocations: 0.6035 MB / 373.3 MB, free: 3.156 MB / 330.7 MB Notification: Performance of pre-optimization done (n=96): time 2.755e-06/0.2137, allocations: 3.938 kB / 373.3 MB, free: 3.152 MB / 330.7 MB Notification: Performance of matching and sorting (n=99): time 0.007334/0.2211, allocations: 4.525 MB / 377.8 MB, free: 14.56 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.2211, allocations: 72.25 kB / 377.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002268/0.2234, allocations: 2.725 MB / 380.6 MB, free: 11.74 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.356e-05/0.2234, allocations: 41.7 kB / 380.6 MB, free: 11.7 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000733/0.2242, allocations: 1.3 MB / 381.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.2244, allocations: 345.1 kB / 382.3 MB, free: 10.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002277/0.2246, allocations: 230.4 kB / 382.5 MB, free: 9.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.751e-05/0.2247, allocations: 345.9 kB / 382.8 MB, free: 9.477 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006873/0.2254, allocations: 478 kB / 383.3 MB, free: 9.012 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.2264, allocations: 0.6509 MB / 383.9 MB, free: 8.297 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.2279, allocations: 1.13 MB / 385.1 MB, free: 7.105 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2279, allocations: 7.875 kB / 385.1 MB, free: 7.098 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002363/0.2302, allocations: 1.835 MB / 386.9 MB, free: 5.223 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.2303, allocations: 8 kB / 386.9 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.322e-05/0.2304, allocations: 120.5 kB / 387 MB, free: 5.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004596/0.2308, allocations: 268.3 kB / 387.3 MB, free: 4.805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000455/0.2313, allocations: 195.7 kB / 387.5 MB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006578/0.2378, allocations: 13.18 MB / 400.7 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.2389, allocations: 91.89 kB / 400.8 MB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.54e-05/0.2389, allocations: 64.12 kB / 400.8 MB, free: 6.148 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006453/0.2396, allocations: 426.2 kB / 401.2 MB, free: 5.723 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000249/0.2398, allocations: 393.5 kB / 401.6 MB, free: 5.336 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00269/0.2425, allocations: 2.06 MB / 403.7 MB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.2425, allocations: 8 kB / 403.7 MB, free: 3.227 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.2425, allocations: 4 kB / 403.7 MB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.2425, allocations: 7.984 kB / 403.7 MB, free: 3.215 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001449/0.244, allocations: 1.39 MB / 405.1 MB, free: 1.781 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.149e-05/0.2441, allocations: 120 kB / 405.2 MB, free: 1.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/0.2444, allocations: 131.8 kB / 405.3 MB, free: 1.535 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003628/0.2448, allocations: 268.3 kB / 405.6 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.617e-05/0.2448, allocations: 47.98 kB / 405.6 MB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005583/0.2504, allocations: 13.18 MB / 418.8 MB, free: 2.867 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.2504, allocations: 0 / 418.8 MB, free: 2.867 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003458/0.2539, allocations: 2.411 MB / 421.2 MB, free: 412 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006844/0.2546, allocations: 435.3 kB / 421.7 MB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001842/0.2547, allocations: 27.94 kB / 421.7 MB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005009/0.2552, allocations: 83.89 kB / 421.8 MB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/0.2555, allocations: 148.7 kB / 421.9 MB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.245e-05/0.2556, allocations: 47.98 kB / 422 MB, free: 15.68 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001795/0.2574, allocations: 1.782 MB / 423.7 MB, free: 13.89 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2574, allocations: 0 / 423.7 MB, free: 13.89 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001172/0.2586, allocations: 0.6596 MB / 424.4 MB, free: 13.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004279/0.2628, allocations: 3.727 MB / 428.1 MB, free: 9.43 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002394/0.2652, allocations: 2.448 MB / 430.6 MB, free: 6.828 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2652, allocations: 0 / 430.6 MB, free: 6.828 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.2667, allocations: 1.909 MB / 432.5 MB, free: 4.762 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.268, allocations: 0.5168 MB / 433 MB, free: 4.238 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02114/0.2891, allocations: 17.83 MB / 450.8 MB, free: 2.031 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007478/0.2899, allocations: 1.112 MB / 451.9 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000966/0.2909, allocations: 399.3 kB / 452.3 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008422/0.2917, allocations: 1.203 MB / 453.5 MB, free: 15.29 MB / 426.7 MB Notification: Performance of SimCode: time 1.713e-06/0.2917, allocations: 0 / 453.5 MB, free: 15.29 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2204/0.5121, allocations: 71.23 MB / 0.5125 GB, free: 101.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.198/9.71, allocations: 3.938 kB / 0.5125 GB, free: 101.6 MB / 426.7 MB " [Timeout remaining time 650] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000997606 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.455392364412546] Failed to read output from testmodel.py, exit status != 0: ['time', 'mn1.Dinternal', 'mn1.Sinternal', 'mn2.Dinternal', 'mn2.Sinternal', 'mp1.Dinternal', 'mp1.Sinternal', 'mp2.Dinternal', 'mp2.Sinternal'] 9.831473628990352 9.840006745 9.654017971 Calling exit ...