Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001305/0.001305, allocations: 122.7 kB / 18.5 MB, free: 4.578 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.001325/0.001325, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.434/1.434, allocations: 230.5 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 67.84 kB / 373.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1126, allocations: 53.32 MB / 426.9 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.2143/0.3269, allocations: 14.24 MB / 441.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02596/0.3528, allocations: 20.41 MB / 461.5 MB, free: 4.543 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00317/0.356, allocations: 121.2 kB / 461.6 MB, free: 4.477 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003803/0.3598, allocations: 1.136 MB / 462.8 MB, free: 3.875 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01002/0.3698, allocations: 2.308 MB / 465.1 MB, free: 2.465 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00703/0.3768, allocations: 1.444 MB / 466.5 MB, free: 1.711 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01345/0.3903, allocations: 6.518 MB / 473 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007505/0.391, allocations: 254 kB / 473.3 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002268/0.3933, allocations: 1.099 MB / 474.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001553/0.3949, allocations: 1.081 MB / 475.5 MB, free: 13.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000177/0.395, allocations: 75.59 kB / 475.5 MB, free: 13.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00487/0.3999, allocations: 1.481 MB / 477 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004459/0.4004, allocations: 315.8 kB / 477.3 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001761/0.4021, allocations: 1.324 MB / 478.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006337/0.4085, allocations: 3.709 MB / 482.4 MB, free: 9.238 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4085, allocations: 0 / 482.4 MB, free: 9.238 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4085, allocations: 0 / 482.4 MB, free: 9.238 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.795e-05/0.4085, allocations: 0 / 482.4 MB, free: 9.238 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.006545/0.4151, allocations: 3.692 MB / 486.1 MB, free: 5.637 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.4151, allocations: 11.97 kB / 486.1 MB, free: 5.625 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001288/0.4153, allocations: 94.52 kB / 486.2 MB, free: 5.523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000495/0.4158, allocations: 397.5 kB / 486.6 MB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004297/0.4201, allocations: 2.559 MB / 489.1 MB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.769e-05/0.4201, allocations: 33 kB / 489.1 MB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/0.4202, allocations: 51.98 kB / 489.2 MB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.4217, allocations: 0.7576 MB / 490 MB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.4217, allocations: 0 / 490 MB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.55e-05/0.4218, allocations: 20 kB / 490 MB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.991e-05/0.4218, allocations: 19.98 kB / 490 MB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001727/0.4236, allocations: 0.8514 MB / 490.8 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005646/0.4292, allocations: 2.978 MB / 493.8 MB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.4309, allocations: 0.7158 MB / 494.5 MB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001587/0.4325, allocations: 0.8588 MB / 495.4 MB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03828/0.4707, allocations: 30.69 MB / 0.5138 GB, free: 9.184 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001382/0.4721, allocations: 0.6035 MB / 0.5143 GB, free: 8.57 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.457e-06/0.4721, allocations: 3.938 kB / 0.5144 GB, free: 8.566 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01364/0.4858, allocations: 5.267 MB / 0.5195 GB, free: 3.051 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.446e-05/0.4858, allocations: 72.41 kB / 0.5196 GB, free: 2.969 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004928/0.4908, allocations: 2.692 MB / 0.5222 GB, free: 268 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001824/0.4909, allocations: 41.7 kB / 0.5222 GB, free: 220 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001521/0.4925, allocations: 1.308 MB / 0.5235 GB, free: 14.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004616/0.4929, allocations: 352.9 kB / 0.5238 GB, free: 14.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005139/0.4934, allocations: 234.4 kB / 0.5241 GB, free: 14.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.4936, allocations: 349.9 kB / 0.5244 GB, free: 13.97 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.4949, allocations: 470 kB / 0.5249 GB, free: 13.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.4964, allocations: 0.6509 MB / 0.5255 GB, free: 12.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002647/0.499, allocations: 1.13 MB / 0.5266 GB, free: 11.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.499, allocations: 0 / 0.5266 GB, free: 11.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004404/0.5034, allocations: 1.989 MB / 0.5285 GB, free: 9.539 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.5035, allocations: 8 kB / 0.5285 GB, free: 9.531 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001855/0.5036, allocations: 120 kB / 0.5287 GB, free: 9.414 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007538/0.5044, allocations: 262.6 kB / 0.5289 GB, free: 9.129 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008537/0.5052, allocations: 199.7 kB / 0.5291 GB, free: 8.934 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01133/0.5166, allocations: 14.24 MB / 0.543 GB, free: 9.309 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/0.5183, allocations: 94.58 kB / 0.5431 GB, free: 9.219 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002748/0.5186, allocations: 60 kB / 0.5431 GB, free: 9.16 MB / 462.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.001091/0.5197, allocations: 422.1 kB / 0.5436 GB, free: 8.738 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007792/0.5205, allocations: 385.6 kB / 0.5439 GB, free: 8.359 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005354/0.5258, allocations: 2.223 MB / 0.5461 GB, free: 6.059 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.712e-05/0.5259, allocations: 12 kB / 0.5461 GB, free: 6.047 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.662e-05/0.5259, allocations: 4 kB / 0.5461 GB, free: 6.043 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.5259, allocations: 3.984 kB / 0.5461 GB, free: 6.039 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002923/0.5288, allocations: 1.539 MB / 0.5476 GB, free: 4.449 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001735/0.529, allocations: 112 kB / 0.5477 GB, free: 4.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007002/0.5297, allocations: 139.8 kB / 0.5479 GB, free: 4.203 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006815/0.5304, allocations: 264.3 kB / 0.5481 GB, free: 3.914 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.5305, allocations: 47.98 kB / 0.5482 GB, free: 3.867 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01155/0.542, allocations: 14.25 MB / 0.5621 GB, free: 4.219 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.542, allocations: 0 / 0.5621 GB, free: 4.219 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00609/0.5481, allocations: 2.557 MB / 0.5646 GB, free: 1.574 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001513/0.5496, allocations: 0.4986 MB / 0.5651 GB, free: 1.055 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006741/0.5503, allocations: 19.98 kB / 0.5651 GB, free: 1.035 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001368/0.5517, allocations: 83.89 kB / 0.5651 GB, free: 0.9531 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004048/0.5521, allocations: 140.8 kB / 0.5653 GB, free: 0.8125 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001313/0.5522, allocations: 43.98 kB / 0.5653 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00335/0.5556, allocations: 1.778 MB / 0.5671 GB, free: 14.98 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5556, allocations: 0 / 0.5671 GB, free: 14.98 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002485/0.558, allocations: 0.6595 MB / 0.5677 GB, free: 14.32 MB / 494.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.007985/0.566, allocations: 3.827 MB / 0.5714 GB, free: 10.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004681/0.5707, allocations: 2.444 MB / 0.5738 GB, free: 7.801 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/0.5707, allocations: 4.188 kB / 0.5738 GB, free: 7.797 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002943/0.5737, allocations: 1.905 MB / 0.5757 GB, free: 5.742 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003727/0.5774, allocations: 0.6363 MB / 0.5763 GB, free: 5.102 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03651/0.6139, allocations: 18.22 MB / 0.5941 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001763/0.6157, allocations: 1.658 MB / 0.5957 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001418/0.6171, allocations: 395.3 kB / 0.5961 GB, free: 360 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001556/0.6186, allocations: 1.202 MB / 0.5973 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of SimCode: time 1.142e-06/0.6186, allocations: 0 / 0.5973 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3435/0.9621, allocations: 67.01 MB / 0.6627 GB, free: 142.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.85/18.81, allocations: 12.81 kB / 0.6627 GB, free: 142.5 MB / 0.5137 GB " [Timeout remaining time 641] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.270629424136132] 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'] 18.942476885858923 18.957476463 18.545730876 Calling exit ...