Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.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.00125/0.00125, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001577/0.001577, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9161/0.9161, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.565e-06/2.565e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.896e-05/2.152e-05, allocations: 10.22 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008549/0.008571, allocations: 11.99 MB / 336.5 MB, free: 3.867 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01608/0.02465, allocations: 17.59 MB / 354.1 MB, free: 2.207 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001314/0.02597, allocations: 189.8 kB / 354.3 MB, free: 2.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001995/0.02796, allocations: 1.036 MB / 355.3 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00406/0.03202, allocations: 2.401 MB / 357.7 MB, free: 14.55 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002645/0.03467, allocations: 1.441 MB / 359.1 MB, free: 13.11 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005299/0.03997, allocations: 6.71 MB / 365.9 MB, free: 6.379 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003433/0.04031, allocations: 253 kB / 366.1 MB, free: 6.102 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001031/0.04134, allocations: 1.539 MB / 367.6 MB, free: 4.559 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005997/0.04194, allocations: 0.7746 MB / 368.4 MB, free: 3.781 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.223e-05/0.04203, allocations: 76 kB / 368.5 MB, free: 3.707 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001698/0.04373, allocations: 1.217 MB / 369.7 MB, free: 2.488 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.0439, allocations: 325.7 kB / 370 MB, free: 2.168 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004612/0.04436, allocations: 0.7126 MB / 370.7 MB, free: 1.453 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002589/0.04695, allocations: 3.694 MB / 374.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.04695, allocations: 0 / 374.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.04695, allocations: 0 / 374.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.849e-05/0.04697, allocations: 3.938 kB / 374.4 MB, free: 13.74 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.002724/0.04969, allocations: 3.567 MB / 378 MB, free: 10.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.04973, allocations: 11.98 kB / 378 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.853e-05/0.04982, allocations: 106.5 kB / 378.1 MB, free: 9.992 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002348/0.05005, allocations: 393.5 kB / 378.5 MB, free: 9.605 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002431/0.05249, allocations: 2.371 MB / 380.9 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.5e-05/0.05251, allocations: 37 kB / 380.9 MB, free: 7.094 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.429e-05/0.05259, allocations: 55.92 kB / 381 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008793/0.05347, allocations: 0.7577 MB / 381.7 MB, free: 6.273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.05349, allocations: 3.984 kB / 381.7 MB, free: 6.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.486e-05/0.05353, allocations: 20 kB / 381.7 MB, free: 6.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.05355, allocations: 19.98 kB / 381.8 MB, free: 6.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009962/0.05454, allocations: 0.8553 MB / 382.6 MB, free: 5.379 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002734/0.05728, allocations: 2.755 MB / 385.4 MB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009523/0.05823, allocations: 0.7285 MB / 386.1 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008751/0.0591, allocations: 0.8754 MB / 387 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0145/0.0736, allocations: 13.67 MB / 400.6 MB, free: 2.906 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007179/0.07432, allocations: 0.5957 MB / 401.2 MB, free: 2.297 MB / 362.7 MB Notification: Performance of pre-optimization done (n=96): time 2.014e-06/0.07432, allocations: 3.938 kB / 401.2 MB, free: 2.293 MB / 362.7 MB Notification: Performance of matching and sorting (n=99): time 0.006905/0.08123, allocations: 4.509 MB / 405.8 MB, free: 13.72 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.08128, allocations: 68.41 kB / 405.8 MB, free: 13.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002254/0.08353, allocations: 2.704 MB / 408.5 MB, free: 10.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.585e-05/0.08359, allocations: 45.7 kB / 408.6 MB, free: 10.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001062/0.08465, allocations: 1.311 MB / 409.9 MB, free: 9.551 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.08483, allocations: 345.1 kB / 410.2 MB, free: 9.211 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000228/0.08506, allocations: 234.4 kB / 410.4 MB, free: 8.977 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.661e-05/0.08515, allocations: 341.9 kB / 410.8 MB, free: 8.637 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006955/0.08584, allocations: 482 kB / 411.2 MB, free: 8.168 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008042/0.08665, allocations: 0.6431 MB / 411.9 MB, free: 7.457 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001517/0.08817, allocations: 1.133 MB / 413 MB, free: 6.262 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.08817, allocations: 8 kB / 413 MB, free: 6.254 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002255/0.09042, allocations: 1.831 MB / 414.9 MB, free: 4.387 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.09045, allocations: 8 kB / 414.9 MB, free: 4.379 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.866e-05/0.09055, allocations: 120 kB / 415 MB, free: 4.262 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004736/0.09102, allocations: 272.7 kB / 415.3 MB, free: 3.965 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004352/0.09146, allocations: 199.6 kB / 415.4 MB, free: 3.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005938/0.09739, allocations: 13.16 MB / 428.6 MB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006724/0.09807, allocations: 92.08 kB / 428.7 MB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.028e-05/0.09815, allocations: 56 kB / 428.8 MB, free: 5.324 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.0005734/0.09872, allocations: 426.2 kB / 429.2 MB, free: 4.898 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.09895, allocations: 393.5 kB / 429.6 MB, free: 4.512 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002907/0.1019, allocations: 2.056 MB / 431.6 MB, free: 2.406 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.1019, allocations: 12 kB / 431.6 MB, free: 2.395 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1019, allocations: 4 kB / 431.6 MB, free: 2.391 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.1019, allocations: 3.984 kB / 431.6 MB, free: 2.387 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00113/0.103, allocations: 1.386 MB / 433 MB, free: 0.957 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.133e-05/0.1031, allocations: 116 kB / 433.1 MB, free: 0.8438 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003268/0.1034, allocations: 139.7 kB / 433.3 MB, free: 0.707 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003357/0.1037, allocations: 264.3 kB / 433.5 MB, free: 428 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.519e-05/0.1038, allocations: 47.97 kB / 433.6 MB, free: 380 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005627/0.1094, allocations: 13.17 MB / 446.7 MB, free: 2.047 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1094, allocations: 0 / 446.7 MB, free: 2.047 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1749/0.2843, allocations: 2.408 MB / 449.2 MB, free: 115.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/0.2854, allocations: 434.4 kB / 449.6 MB, free: 115.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001879/0.2856, allocations: 22.17 kB / 449.6 MB, free: 115.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000597/0.2862, allocations: 78.81 kB / 449.7 MB, free: 115.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003712/0.2866, allocations: 148.4 kB / 449.8 MB, free: 115.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.572e-05/0.2867, allocations: 49.59 kB / 449.9 MB, free: 115.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00207/0.2888, allocations: 1.768 MB / 451.6 MB, free: 115.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2888, allocations: 1.312 kB / 451.6 MB, free: 115.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001168/0.2899, allocations: 0.6528 MB / 452.3 MB, free: 115.6 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.003784/0.2937, allocations: 3.723 MB / 456 MB, free: 114.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002028/0.2957, allocations: 2.448 MB / 458.5 MB, free: 113.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2958, allocations: 0 / 458.5 MB, free: 113.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.2969, allocations: 1.898 MB / 460.4 MB, free: 111.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.2982, allocations: 0.6131 MB / 461 MB, free: 111.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01592/0.3141, allocations: 17.77 MB / 478.7 MB, free: 94.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000587/0.3147, allocations: 1.104 MB / 479.8 MB, free: 92.95 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007863/0.3155, allocations: 389.2 kB / 480.2 MB, free: 92.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006923/0.3162, allocations: 1.195 MB / 481.4 MB, free: 91.38 MB / 410.7 MB Notification: Performance of SimCode: time 1.613e-06/0.3162, allocations: 0 / 481.4 MB, free: 91.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08005/0.3962, allocations: 70.83 MB / 0.5393 GB, free: 21.08 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.02/10.42, allocations: 11.47 kB / 0.5393 GB, free: 21.07 MB / 410.7 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.29128288757056] 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.541734365746379 10.549623304 10.501086146 Calling exit ...