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.001294/0.001294, allocations: 108.8 kB / 21.22 MB, free: 0.75 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.00124/0.00124, allocations: 191.8 kB / 24.5 MB, free: 4.008 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.35/1.35, allocations: 225.7 MB / 253.3 MB, free: 13.04 MB / 206.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.001675/0.001675, allocations: 47.92 kB / 371.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2342, allocations: 52.19 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005453/0.2397, allocations: 4.267 MB / 427.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002035/0.2417, allocations: 1.179 MB / 428.9 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002378/0.2419, allocations: 12 kB / 428.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002515/0.2422, allocations: 106.8 kB / 429 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003487/0.2425, allocations: 190.3 kB / 429.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006476/0.2432, allocations: 323.6 kB / 429.5 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.2443, allocations: 1.097 MB / 430.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003249/0.2446, allocations: 211.1 kB / 430.8 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004487/0.245, allocations: 406.8 kB / 431.2 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005236/0.2456, allocations: 470.3 kB / 431.6 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001375/0.2457, allocations: 116 kB / 431.8 MB, free: 6.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.2459, allocations: 120 kB / 431.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.246, allocations: 223.3 kB / 432.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003968/0.2464, allocations: 446 kB / 432.5 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.2476, allocations: 1.231 MB / 433.8 MB, free: 4.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2476, allocations: 0 / 433.8 MB, free: 4.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2476, allocations: 0 / 433.8 MB, free: 4.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.2476, allocations: 0 / 433.8 MB, free: 4.227 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002784/0.2504, allocations: 1.218 MB / 435 MB, free: 2.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.2504, allocations: 8.031 kB / 435 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.231e-05/0.2504, allocations: 17.5 kB / 435 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001244/0.2506, allocations: 106.7 kB / 435.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.2507, allocations: 88.42 kB / 435.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006636/0.2514, allocations: 424.1 kB / 435.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.131e-05/0.2514, allocations: 45.69 kB / 435.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.2515, allocations: 60.38 kB / 435.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002151/0.2537, allocations: 0.9719 MB / 436.7 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.2537, allocations: 0 / 436.7 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.542e-05/0.2538, allocations: 28 kB / 436.7 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.012e-05/0.2538, allocations: 16 kB / 436.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0029/0.2567, allocations: 1.003 MB / 437.7 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00476/0.2615, allocations: 3.133 MB / 440.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002232/0.2637, allocations: 0.7362 MB / 441.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.2649, allocations: 421.9 kB / 442 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.85e-05/0.2649, allocations: 20.48 kB / 442 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00122/0.2661, allocations: 461.1 kB / 442.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.924e-06/0.2661, allocations: 0 / 442.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003229/0.2694, allocations: 1.103 MB / 443.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002093/0.2696, allocations: 372.3 kB / 443.9 MB, free: 9.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007698/0.2703, allocations: 0.5694 MB / 444.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.576e-05/0.2704, allocations: 45.69 kB / 444.6 MB, free: 9.012 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002788/0.2707, allocations: 380.4 kB / 444.9 MB, free: 8.637 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/0.2708, allocations: 174.5 kB / 445.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/0.2711, allocations: 142.6 kB / 445.2 MB, free: 8.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.2713, allocations: 378.7 kB / 445.6 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.2725, allocations: 401.7 kB / 446 MB, free: 7.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.274, allocations: 0.6771 MB / 446.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002308/0.2763, allocations: 0.9791 MB / 447.7 MB, free: 5.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2763, allocations: 0 / 447.7 MB, free: 5.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002953/0.2793, allocations: 1.14 MB / 448.8 MB, free: 4.516 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.669e-05/0.2793, allocations: 63.34 kB / 448.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.2794, allocations: 8 kB / 448.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.2794, allocations: 8 kB / 448.9 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.2804, allocations: 224 kB / 449.1 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/0.2804, allocations: 11.94 kB / 449.1 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.2815, allocations: 187.2 kB / 449.3 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-05/0.2815, allocations: 39.98 kB / 449.3 MB, free: 3.973 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.0003124/0.2818, allocations: 221.5 kB / 449.5 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.282, allocations: 71.58 kB / 449.6 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001537/0.2821, allocations: 74.41 kB / 449.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.2821, allocations: 4 kB / 449.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.2821, allocations: 0 / 449.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.2821, allocations: 3.984 kB / 449.7 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003411/0.2855, allocations: 1.652 MB / 451.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2855, allocations: 0 / 451.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007662/0.2863, allocations: 147.8 kB / 451.5 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.2863, allocations: 7.938 kB / 451.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.552e-05/0.2864, allocations: 15.98 kB / 451.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.2864, allocations: 0 / 451.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.2864, allocations: 7.938 kB / 451.5 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003337/0.2897, allocations: 1.3 MB / 452.8 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/0.2898, allocations: 79.53 kB / 452.9 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.818e-05/0.2899, allocations: 12 kB / 452.9 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007654/0.2907, allocations: 107.9 kB / 453 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.2908, allocations: 52.3 kB / 453.1 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.667e-05/0.2909, allocations: 19.98 kB / 453.1 MB, free: 132 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005978/0.2915, allocations: 398.9 kB / 453.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2915, allocations: 4 kB / 453.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006094/0.2921, allocations: 179.8 kB / 453.7 MB, free: 15.56 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.003693/0.2958, allocations: 1.859 MB / 455.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002561/0.2983, allocations: 0.9621 MB / 456.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.2983, allocations: 0 / 456.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.2995, allocations: 398.4 kB / 456.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005919/0.3, allocations: 105.4 kB / 457 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01234/0.3124, allocations: 6.469 MB / 463.4 MB, free: 5.461 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005443/0.3129, allocations: 0.8785 MB / 464.3 MB, free: 4.555 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004066/0.3133, allocations: 88.84 kB / 464.4 MB, free: 4.469 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004218/0.3138, allocations: 235.4 kB / 464.6 MB, free: 4.238 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3138, allocations: 0 / 464.6 MB, free: 4.238 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04244/0.3562, allocations: 15.06 MB / 479.7 MB, free: 5.391 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.87, allocations: 7.438 kB / 479.7 MB, free: 5.387 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.142397634976078] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 12.050464870990254 12.065294546 11.814658244 Calling exit ...