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.001828/0.001828, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 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.002181/0.002181, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 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 1.45/1.45, allocations: 230.2 MB / 254.5 MB, free: 15.41 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001817/0.001817, allocations: 63.89 kB / 373.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1047, allocations: 53.32 MB / 426.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01484/0.1196, allocations: 14.24 MB / 440.9 MB, free: 6.711 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.239/0.3586, allocations: 20.39 MB / 461.3 MB, free: 7.148 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002137/0.3607, allocations: 123.9 kB / 461.4 MB, free: 7.082 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002833/0.3636, allocations: 1.123 MB / 462.5 MB, free: 6.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008205/0.3718, allocations: 2.318 MB / 464.9 MB, free: 5.805 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0066/0.3784, allocations: 1.443 MB / 466.3 MB, free: 5.367 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01188/0.3902, allocations: 6.516 MB / 472.8 MB, free: 3.125 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007055/0.3909, allocations: 250.6 kB / 473.1 MB, free: 2.965 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002259/0.3932, allocations: 1.094 MB / 474.1 MB, free: 2.531 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001441/0.3946, allocations: 1.087 MB / 475.2 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002283/0.3949, allocations: 76.16 kB / 475.3 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00532/0.4002, allocations: 1.481 MB / 476.8 MB, free: 1.547 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004185/0.4006, allocations: 324.3 kB / 477.1 MB, free: 1.324 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001881/0.4025, allocations: 1.322 MB / 478.4 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006396/0.4089, allocations: 3.709 MB / 482.1 MB, free: 14.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.4089, allocations: 4 kB / 482.1 MB, free: 14.69 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4089, allocations: 0 / 482.1 MB, free: 14.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.98e-05/0.409, allocations: 0 / 482.1 MB, free: 14.69 MB / 382.1 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.007385/0.4164, allocations: 3.693 MB / 485.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.4164, allocations: 9.656 kB / 485.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000131/0.4165, allocations: 93.61 kB / 485.9 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005946/0.4171, allocations: 395 kB / 486.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004351/0.4215, allocations: 2.554 MB / 488.9 MB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.834e-05/0.4215, allocations: 40.41 kB / 488.9 MB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.4217, allocations: 55.05 kB / 489 MB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.4232, allocations: 0.7551 MB / 489.7 MB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.4232, allocations: 1.312 kB / 489.7 MB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.704e-05/0.4233, allocations: 23.92 kB / 489.7 MB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.4233, allocations: 24.02 kB / 489.8 MB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.425, allocations: 0.8589 MB / 490.6 MB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00563/0.4306, allocations: 2.963 MB / 493.6 MB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.4323, allocations: 0.7278 MB / 494.3 MB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001296/0.4336, allocations: 0.8516 MB / 495.2 MB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03639/0.47, allocations: 30.7 MB / 0.5135 GB, free: 3.512 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001219/0.4712, allocations: 0.5918 MB / 0.5141 GB, free: 2.914 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.085e-06/0.4712, allocations: 0 / 0.5141 GB, free: 2.914 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01296/0.4841, allocations: 5.278 MB / 0.5193 GB, free: 13.39 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.724e-05/0.4842, allocations: 64.41 kB / 0.5193 GB, free: 13.31 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003647/0.4878, allocations: 2.696 MB / 0.522 GB, free: 10.6 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001263/0.488, allocations: 41.7 kB / 0.522 GB, free: 10.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001249/0.4892, allocations: 1.312 MB / 0.5233 GB, free: 9.238 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003452/0.4896, allocations: 349 kB / 0.5236 GB, free: 8.895 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003891/0.49, allocations: 234.5 kB / 0.5238 GB, free: 8.656 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.4901, allocations: 341.9 kB / 0.5242 GB, free: 8.316 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.4913, allocations: 485.9 kB / 0.5246 GB, free: 7.84 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/0.4927, allocations: 0.6392 MB / 0.5253 GB, free: 7.137 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002555/0.4952, allocations: 1.133 MB / 0.5264 GB, free: 5.941 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4953, allocations: 0 / 0.5264 GB, free: 5.941 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004267/0.4995, allocations: 1.989 MB / 0.5283 GB, free: 3.875 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.4995, allocations: 8 kB / 0.5283 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001755/0.4997, allocations: 116 kB / 0.5284 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007186/0.5004, allocations: 274.1 kB / 0.5287 GB, free: 3.457 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000846/0.5013, allocations: 191.7 kB / 0.5289 GB, free: 3.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01104/0.5123, allocations: 14.25 MB / 0.5428 GB, free: 3.641 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001964/0.5143, allocations: 87.97 kB / 0.5429 GB, free: 3.555 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001669/0.5144, allocations: 56 kB / 0.5429 GB, free: 3.5 MB / 446.1 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.0009282/0.5154, allocations: 432.4 kB / 0.5433 GB, free: 3.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000591/0.516, allocations: 389.5 kB / 0.5437 GB, free: 2.688 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004894/0.5209, allocations: 2.221 MB / 0.5459 GB, free: 396 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.5209, allocations: 8 kB / 0.5459 GB, free: 388 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/0.5209, allocations: 4 kB / 0.5459 GB, free: 384 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.5209, allocations: 3.984 kB / 0.5459 GB, free: 380 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00259/0.5235, allocations: 1.539 MB / 0.5474 GB, free: 14.78 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001626/0.5236, allocations: 112 kB / 0.5475 GB, free: 14.67 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000767/0.5244, allocations: 139.8 kB / 0.5476 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006719/0.5251, allocations: 264.3 kB / 0.5479 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-05/0.5252, allocations: 51.91 kB / 0.5479 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01117/0.5363, allocations: 14.25 MB / 0.5619 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.5364, allocations: 3.984 kB / 0.5619 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005881/0.5422, allocations: 2.553 MB / 0.5644 GB, free: 11.91 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001826/0.5441, allocations: 0.5063 MB / 0.5648 GB, free: 11.38 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004814/0.5445, allocations: 19.98 kB / 0.5649 GB, free: 11.36 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009402/0.5455, allocations: 79.89 kB / 0.5649 GB, free: 11.28 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004011/0.5459, allocations: 136.8 kB / 0.5651 GB, free: 11.14 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.546, allocations: 51.98 kB / 0.5651 GB, free: 11.09 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002768/0.5488, allocations: 1.77 MB / 0.5669 GB, free: 9.316 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5488, allocations: 0 / 0.5669 GB, free: 9.316 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001749/0.5505, allocations: 0.6557 MB / 0.5675 GB, free: 8.66 MB / 478.1 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.006956/0.5575, allocations: 3.822 MB / 0.5712 GB, free: 4.742 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00415/0.5616, allocations: 2.448 MB / 0.5736 GB, free: 2.141 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.5616, allocations: 0 / 0.5736 GB, free: 2.141 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002701/0.5643, allocations: 1.917 MB / 0.5755 GB, free: 72 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002822/0.5672, allocations: 0.6307 MB / 0.5761 GB, free: 15.43 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03033/0.5975, allocations: 18.22 MB / 0.5939 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001338/0.5988, allocations: 1.669 MB / 0.5955 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001284/0.6001, allocations: 391.3 kB / 0.5959 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00137/0.6015, allocations: 1.194 MB / 0.5971 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of SimCode: time 1.082e-06/0.6015, allocations: 0 / 0.5971 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3407/0.9422, allocations: 66.98 MB / 0.6625 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.92/19.86, allocations: 4.594 kB / 0.6625 GB, free: 181.3 MB / 0.5294 GB " [Timeout remaining time 640] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 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: 22.453892823308706] 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'] 19.98522663488984 19.994640976 19.583481226 Calling exit ...