Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0008756/0.0008756, allocations: 79.7 kB / 20.67 MB, free: 3.895 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.001158/0.001158, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9077/0.9077, allocations: 177.1 MB / 204.2 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.895e-05/2.063e-05, allocations: 6.219 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008329/0.008349, allocations: 11.99 MB / 336.5 MB, free: 3.922 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02054/0.02889, allocations: 17.58 MB / 354.1 MB, free: 2.27 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0026/0.03149, allocations: 193.8 kB / 354.3 MB, free: 2.078 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002751/0.03425, allocations: 1.036 MB / 355.4 MB, free: 1.035 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007696/0.04194, allocations: 2.408 MB / 357.8 MB, free: 14.61 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00446/0.0464, allocations: 1.441 MB / 359.2 MB, free: 13.16 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007817/0.05422, allocations: 6.706 MB / 365.9 MB, free: 6.438 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006935/0.05491, allocations: 245 kB / 366.1 MB, free: 6.168 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002054/0.05697, allocations: 1.543 MB / 367.7 MB, free: 4.621 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00116/0.05813, allocations: 0.7784 MB / 368.5 MB, free: 3.84 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002624/0.05839, allocations: 76 kB / 368.5 MB, free: 3.766 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003555/0.06194, allocations: 1.21 MB / 369.8 MB, free: 2.555 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002462/0.06219, allocations: 321.7 kB / 370.1 MB, free: 2.238 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001205/0.06339, allocations: 0.7203 MB / 370.8 MB, free: 1.516 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005155/0.06855, allocations: 3.69 MB / 374.5 MB, free: 13.81 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.06856, allocations: 0 / 374.5 MB, free: 13.81 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.06856, allocations: 0 / 374.5 MB, free: 13.81 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.893e-05/0.06864, allocations: 0 / 374.5 MB, free: 13.81 MB / 346.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.003823/0.07246, allocations: 3.574 MB / 378.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/0.07252, allocations: 12.02 kB / 378.1 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.07262, allocations: 94.52 kB / 378.2 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003835/0.073, allocations: 393.5 kB / 378.5 MB, free: 9.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0027/0.0757, allocations: 2.378 MB / 380.9 MB, free: 7.199 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.07573, allocations: 33 kB / 381 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.268e-05/0.07582, allocations: 59.92 kB / 381 MB, free: 7.105 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.07682, allocations: 0.7577 MB / 381.8 MB, free: 6.344 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.07684, allocations: 0 / 381.8 MB, free: 6.344 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.717e-05/0.07689, allocations: 16 kB / 381.8 MB, free: 6.328 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.139e-05/0.07691, allocations: 23.97 kB / 381.8 MB, free: 6.305 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.07796, allocations: 0.8553 MB / 382.7 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003535/0.08149, allocations: 2.759 MB / 385.4 MB, free: 2.633 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.08258, allocations: 0.7286 MB / 386.1 MB, free: 1.898 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.08363, allocations: 0.8792 MB / 387 MB, free: 1.012 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01529/0.09892, allocations: 13.66 MB / 400.7 MB, free: 2.973 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007576/0.09968, allocations: 0.5957 MB / 401.3 MB, free: 2.367 MB / 362.7 MB Notification: Performance of pre-optimization done (n=96): time 3.757e-06/0.09968, allocations: 4 kB / 401.3 MB, free: 2.363 MB / 362.7 MB Notification: Performance of matching and sorting (n=99): time 0.007259/0.1069, allocations: 4.516 MB / 405.8 MB, free: 13.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.157e-05/0.107, allocations: 68.41 kB / 405.9 MB, free: 13.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002992/0.11, allocations: 2.704 MB / 408.6 MB, free: 10.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.591e-05/0.1101, allocations: 41.7 kB / 408.6 MB, free: 10.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007941/0.1109, allocations: 1.308 MB / 409.9 MB, free: 9.621 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002733/0.1111, allocations: 345.1 kB / 410.3 MB, free: 9.281 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002887/0.1114, allocations: 230.4 kB / 410.5 MB, free: 9.051 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1116, allocations: 345.9 kB / 410.8 MB, free: 8.707 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007769/0.1124, allocations: 481.9 kB / 411.3 MB, free: 8.238 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007803/0.1131, allocations: 0.6509 MB / 411.9 MB, free: 7.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.1146, allocations: 1.13 MB / 413.1 MB, free: 6.328 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.1146, allocations: 4 kB / 413.1 MB, free: 6.324 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002596/0.1172, allocations: 1.831 MB / 414.9 MB, free: 4.453 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.1172, allocations: 8 kB / 414.9 MB, free: 4.445 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-05/0.1173, allocations: 124 kB / 415 MB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004399/0.1178, allocations: 272.3 kB / 415.3 MB, free: 4.027 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004402/0.1182, allocations: 195.7 kB / 415.5 MB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005893/0.1241, allocations: 13.17 MB / 428.7 MB, free: 5.523 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.1253, allocations: 92.02 kB / 428.8 MB, free: 5.434 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002488/0.1255, allocations: 56 kB / 428.8 MB, free: 5.379 MB / 394.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.0006639/0.1262, allocations: 430.2 kB / 429.2 MB, free: 4.949 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000336/0.1265, allocations: 389.5 kB / 429.6 MB, free: 4.566 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002789/0.1293, allocations: 2.048 MB / 431.7 MB, free: 2.473 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.1293, allocations: 8 kB / 431.7 MB, free: 2.465 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.1293, allocations: 4 kB / 431.7 MB, free: 2.461 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.1293, allocations: 3.984 kB / 431.7 MB, free: 2.457 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.1307, allocations: 1.394 MB / 433.1 MB, free: 1.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.718e-05/0.1308, allocations: 116 kB / 433.2 MB, free: 0.9062 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003511/0.1312, allocations: 139.7 kB / 433.3 MB, free: 0.7695 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003651/0.1315, allocations: 264.3 kB / 433.6 MB, free: 492 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.278e-05/0.1316, allocations: 43.98 kB / 433.6 MB, free: 448 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006004/0.1376, allocations: 13.17 MB / 446.8 MB, free: 2.117 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1376, allocations: 3.984 kB / 446.8 MB, free: 2.113 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1586/0.2962, allocations: 2.396 MB / 449.2 MB, free: 116 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/0.2972, allocations: 435.3 kB / 449.6 MB, free: 116 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002974/0.2975, allocations: 21.72 kB / 449.6 MB, free: 116 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006102/0.2982, allocations: 81.7 kB / 449.7 MB, free: 116 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003935/0.2985, allocations: 143.7 kB / 449.9 MB, free: 116 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.2987, allocations: 52.22 kB / 449.9 MB, free: 116 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002199/0.3009, allocations: 1.772 MB / 451.7 MB, free: 115.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3009, allocations: 1 kB / 451.7 MB, free: 115.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001585/0.3024, allocations: 0.6499 MB / 452.3 MB, free: 115.8 MB / 410.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.00419/0.3066, allocations: 3.735 MB / 456.1 MB, free: 115.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002217/0.3089, allocations: 2.442 MB / 458.5 MB, free: 113.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3089, allocations: 0 / 458.5 MB, free: 113.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.3101, allocations: 1.902 MB / 460.4 MB, free: 111.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001689/0.3118, allocations: 0.6142 MB / 461 MB, free: 111.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01687/0.3286, allocations: 17.77 MB / 478.8 MB, free: 94.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000632/0.3293, allocations: 1.104 MB / 479.9 MB, free: 93.07 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008052/0.3301, allocations: 394.1 kB / 480.3 MB, free: 92.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006413/0.3307, allocations: 1.195 MB / 481.5 MB, free: 91.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.734e-06/0.3307, allocations: 0 / 481.5 MB, free: 91.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09492/0.4256, allocations: 70.86 MB / 0.5394 GB, free: 21.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.55, allocations: 16.84 kB / 0.5394 GB, free: 21.3 MB / 410.7 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.41373464372009] 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'] 10.68131001945585 10.690726204 10.620402857 Calling exit ...