Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001696/0.001696, allocations: 115.7 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 194.5 kB / 21.43 MB, free: 1.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 225.6 MB / 249.8 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 43.94 kB / 366.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09924/0.1008, allocations: 52.14 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006285/0.1071, allocations: 4.266 MB / 422.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002773/0.1098, allocations: 1.191 MB / 423.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005812/0.1104, allocations: 11.94 kB / 424 MB, free: 7.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004631/0.1109, allocations: 102.9 kB / 424.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008448/0.1117, allocations: 190.3 kB / 424.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009317/0.1127, allocations: 323.5 kB / 424.6 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001572/0.1142, allocations: 1.089 MB / 425.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004229/0.1147, allocations: 202.6 kB / 425.8 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006471/0.1153, allocations: 414.8 kB / 426.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005681/0.1159, allocations: 470.2 kB / 426.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001507/0.116, allocations: 119.9 kB / 426.8 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001539/0.1162, allocations: 120 kB / 426.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001947/0.1164, allocations: 215.4 kB / 427.1 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004261/0.1168, allocations: 450 kB / 427.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001307/0.1181, allocations: 1.226 MB / 428.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1181, allocations: 0 / 428.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1181, allocations: 0 / 428.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.1181, allocations: 0 / 428.8 MB, free: 2.23 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.003563/0.1217, allocations: 1.281 MB / 430.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.1217, allocations: 8.031 kB / 430.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.244e-05/0.1218, allocations: 17.5 kB / 430.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001914/0.122, allocations: 106.7 kB / 430.2 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002652/0.1222, allocations: 88.42 kB / 430.3 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.1232, allocations: 485.9 kB / 430.8 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.774e-05/0.1233, allocations: 45.69 kB / 430.8 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/0.1235, allocations: 60.38 kB / 430.9 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003445/0.1269, allocations: 0.9681 MB / 431.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.1269, allocations: 0 / 431.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/0.1271, allocations: 28 kB / 431.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.37e-05/0.1271, allocations: 16 kB / 431.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004659/0.1317, allocations: 0.9991 MB / 432.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007846/0.1396, allocations: 3.192 MB / 436.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003659/0.1432, allocations: 0.8895 MB / 437 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001931/0.1452, allocations: 421.8 kB / 437.4 MB, free: 9.293 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.499e-05/0.1453, allocations: 20.41 kB / 437.4 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001912/0.1472, allocations: 465.1 kB / 437.9 MB, free: 8.805 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 3.898e-06/0.1472, allocations: 0 / 437.9 MB, free: 8.805 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.005022/0.1522, allocations: 1.1 MB / 439 MB, free: 7.699 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002968/0.1525, allocations: 376.3 kB / 439.3 MB, free: 7.246 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001327/0.1538, allocations: 0.5733 MB / 439.9 MB, free: 6.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001138/0.1539, allocations: 37.7 kB / 439.9 MB, free: 6.617 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004491/0.1544, allocations: 376.4 kB / 440.3 MB, free: 6.246 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002629/0.1546, allocations: 182.5 kB / 440.5 MB, free: 6.066 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003912/0.155, allocations: 142.6 kB / 440.6 MB, free: 5.922 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002656/0.1553, allocations: 378.7 kB / 441 MB, free: 5.543 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00191/0.1572, allocations: 401.7 kB / 441.4 MB, free: 5.152 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002229/0.1594, allocations: 0.6772 MB / 442.1 MB, free: 4.352 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003495/0.1629, allocations: 0.9701 MB / 443 MB, free: 3.285 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.1629, allocations: 0 / 443 MB, free: 3.285 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.004813/0.1678, allocations: 1.142 MB / 444.2 MB, free: 2.129 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.482e-05/0.1679, allocations: 63.39 kB / 444.2 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.321e-05/0.1679, allocations: 8 kB / 444.3 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.531e-05/0.1679, allocations: 8 kB / 444.3 MB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.1695, allocations: 227.9 kB / 444.5 MB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.513e-05/0.1696, allocations: 12 kB / 444.5 MB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001544/0.1711, allocations: 187.2 kB / 444.7 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.1712, allocations: 36 kB / 444.7 MB, free: 1.586 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005234/0.1717, allocations: 230 kB / 444.9 MB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.1719, allocations: 67.58 kB / 445 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002388/0.1722, allocations: 74.41 kB / 445.1 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.1722, allocations: 4 kB / 445.1 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.1722, allocations: 0 / 445.1 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.1722, allocations: 0 / 445.1 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.208/0.3802, allocations: 1.679 MB / 446.8 MB, free: 30.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.3803, allocations: 2.672 kB / 446.8 MB, free: 30.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007889/0.381, allocations: 142.5 kB / 446.9 MB, free: 30.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.381, allocations: 3.125 kB / 446.9 MB, free: 30.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.428e-05/0.3811, allocations: 15.52 kB / 446.9 MB, free: 30.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.3811, allocations: 0 / 446.9 MB, free: 30.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3811, allocations: 3.75 kB / 446.9 MB, free: 30.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003206/0.3843, allocations: 1.302 MB / 448.2 MB, free: 30.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001616/0.3845, allocations: 149.9 kB / 448.4 MB, free: 30.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.932e-05/0.3846, allocations: 14.02 kB / 448.4 MB, free: 30.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007821/0.3854, allocations: 108.9 kB / 448.5 MB, free: 30.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.3855, allocations: 49.38 kB / 448.5 MB, free: 30.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.965e-05/0.3855, allocations: 16.11 kB / 448.6 MB, free: 30.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005334/0.3861, allocations: 405.9 kB / 448.9 MB, free: 30.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3861, allocations: 2.75 kB / 449 MB, free: 30.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000604/0.3867, allocations: 175.9 kB / 449.1 MB, free: 30.11 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003376/0.39, allocations: 1.864 MB / 451 MB, free: 29.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00257/0.3926, allocations: 0.9702 MB / 452 MB, free: 29.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3926, allocations: 0 / 452 MB, free: 29.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.3937, allocations: 392.7 kB / 452.3 MB, free: 29.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006558/0.3944, allocations: 105.1 kB / 452.4 MB, free: 29.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0121/0.4064, allocations: 6.466 MB / 458.9 MB, free: 26.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.4068, allocations: 0.8856 MB / 459.8 MB, free: 25.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004261/0.4072, allocations: 87.55 kB / 459.9 MB, free: 25.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003562/0.4075, allocations: 231.6 kB / 460.1 MB, free: 25.26 MB / 366.1 MB Notification: Performance of SimCode: time 1.213e-06/0.4075, allocations: 0 / 460.1 MB, free: 25.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03763/0.4452, allocations: 14.51 MB / 474.6 MB, free: 20.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.074/9.519, allocations: 16.45 kB / 474.6 MB, free: 20.21 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --stepSize=1.97668e-11 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.812192560988478] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 9.6491024629795 9.657532082 9.53733567 Calling exit ...