Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.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.00192/0.00192, allocations: 117.5 kB / 19.17 MB, free: 3.922 MB / 14.72 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.002234/0.002234, allocations: 203.9 kB / 22.12 MB, free: 0.9805 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.559/1.559, allocations: 207.6 MB / 232.5 MB, free: 3.938 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 56.39 kB / 343.1 MB, free: 9.934 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1146, allocations: 49.11 MB / 392.2 MB, free: 8.656 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006407/0.121, allocations: 4.062 MB / 396.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003491/0.1245, allocations: 1.115 MB / 397.3 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006724/0.1252, allocations: 8 kB / 397.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000426/0.1256, allocations: 103 kB / 397.5 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004588/0.1261, allocations: 174.4 kB / 397.6 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007103/0.1268, allocations: 283.6 kB / 397.9 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001103/0.1279, allocations: 0.9602 MB / 398.9 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004247/0.1283, allocations: 202.5 kB / 399.1 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006821/0.129, allocations: 386.9 kB / 399.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006793/0.1297, allocations: 438.3 kB / 399.9 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001971/0.1299, allocations: 120 kB / 400 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001867/0.1301, allocations: 112 kB / 400.1 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002361/0.1303, allocations: 207.5 kB / 400.3 MB, free: 500 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005174/0.1308, allocations: 418.2 kB / 400.7 MB, free: 80 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001413/0.1322, allocations: 1.141 MB / 401.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1322, allocations: 0 / 401.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.1322, allocations: 4 kB / 401.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.61e-05/0.1323, allocations: 0 / 401.8 MB, free: 14.93 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.003188/0.1355, allocations: 1.203 MB / 403 MB, free: 13.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.1355, allocations: 8.031 kB / 403.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.522e-05/0.1355, allocations: 13.5 kB / 403.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001336/0.1357, allocations: 98.7 kB / 403.2 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001699/0.1358, allocations: 76.47 kB / 403.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007431/0.1366, allocations: 450.1 kB / 403.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.284e-05/0.1366, allocations: 41.69 kB / 403.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.1368, allocations: 59.94 kB / 403.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002302/0.1391, allocations: 0.929 MB / 404.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.1391, allocations: 0 / 404.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.123e-05/0.1392, allocations: 28 kB / 404.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.1392, allocations: 16 kB / 404.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003155/0.1423, allocations: 0.9679 MB / 405.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005378/0.1477, allocations: 3.06 MB / 408.8 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002575/0.1503, allocations: 0.8891 MB / 409.7 MB, free: 6.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001293/0.1516, allocations: 421.8 kB / 410.1 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.771e-05/0.1516, allocations: 12.42 kB / 410.1 MB, free: 6.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001306/0.1529, allocations: 457.1 kB / 410.5 MB, free: 5.863 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.035e-06/0.1529, allocations: 4 kB / 410.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003566/0.1565, allocations: 1.088 MB / 411.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002062/0.1567, allocations: 273.5 kB / 411.9 MB, free: 4.434 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009782/0.1577, allocations: 0.5173 MB / 412.4 MB, free: 3.906 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.94e-05/0.1578, allocations: 37.7 kB / 412.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003015/0.1581, allocations: 340.5 kB / 412.8 MB, free: 3.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.1583, allocations: 174.5 kB / 413 MB, free: 3.352 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002684/0.1585, allocations: 134.6 kB / 413.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.1587, allocations: 362.8 kB / 413.4 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001301/0.16, allocations: 405.7 kB / 413.8 MB, free: 2.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001632/0.1617, allocations: 0.6533 MB / 414.5 MB, free: 1.688 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002699/0.1644, allocations: 0.9739 MB / 415.5 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.1644, allocations: 0 / 415.5 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003374/0.1678, allocations: 1.13 MB / 416.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.991e-05/0.1678, allocations: 67.39 kB / 416.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.1678, allocations: 11.94 kB / 416.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.061e-05/0.1679, allocations: 12.34 kB / 416.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.169, allocations: 215.7 kB / 416.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.965e-05/0.169, allocations: 15.92 kB / 416.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/0.1702, allocations: 179.3 kB / 417.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.297e-05/0.1702, allocations: 32 kB / 417.1 MB, free: 14.93 MB / 350.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.0004112/0.1707, allocations: 221.6 kB / 417.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.1708, allocations: 63.61 kB / 417.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001797/0.171, allocations: 65.52 kB / 417.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.171, allocations: 4 kB / 417.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.171, allocations: 4 kB / 417.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.171, allocations: 3.984 kB / 417.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003718/0.1747, allocations: 1.642 MB / 419.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.1747, allocations: 4 kB / 419.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008236/0.1755, allocations: 147.8 kB / 419.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.1755, allocations: 0 / 419.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.023e-05/0.1756, allocations: 15.98 kB / 419.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.1756, allocations: 4 kB / 419.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1756, allocations: 80 / 419.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003646/0.1793, allocations: 1.292 MB / 420.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002224/0.1795, allocations: 144.6 kB / 420.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.1796, allocations: 12 kB / 420.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008007/0.1804, allocations: 103.9 kB / 420.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.1805, allocations: 52.38 kB / 420.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.648e-05/0.1806, allocations: 15.98 kB / 420.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005797/0.1812, allocations: 354.8 kB / 421.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1812, allocations: 0 / 421.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006478/0.1818, allocations: 175.8 kB / 421.4 MB, free: 10.53 MB / 350.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.004096/0.1859, allocations: 1.855 MB / 423.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002879/0.1888, allocations: 0.9738 MB / 424.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.1888, allocations: 0 / 424.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.19, allocations: 394.4 kB / 424.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006639/0.1907, allocations: 93.86 kB / 424.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01311/0.2038, allocations: 6.162 MB / 430.9 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005968/0.2044, allocations: 0.8588 MB / 431.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004276/0.2048, allocations: 80.66 kB / 431.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004228/0.2052, allocations: 211.4 kB / 432 MB, free: 15.57 MB / 366.1 MB Notification: Performance of SimCode: time 1.113e-06/0.2052, allocations: 0 / 432 MB, free: 15.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03875/0.244, allocations: 13.41 MB / 445.4 MB, free: 2.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.256/9.5, allocations: 15.88 kB / 445.4 MB, free: 2.074 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --stepSize=1.97668e-11 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.04183608700987] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 9.633341470034793 9.653205359 9.515930443 Calling exit ...