Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001723/0.001723, allocations: 118.3 kB / 18.5 MB, free: 4.562 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.001778/0.001778, allocations: 213.5 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.423/1.423, allocations: 230.6 MB / 254.8 MB, free: 15.09 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+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_4_1_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 51.92 kB / 373.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09873/0.1002, allocations: 53.33 MB / 427 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005485/0.1056, allocations: 4.27 MB / 431.3 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1852/0.2909, allocations: 1.203 MB / 432.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003358/0.2912, allocations: 12.72 kB / 432.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002514/0.2915, allocations: 108.3 kB / 432.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003181/0.2918, allocations: 183.9 kB / 432.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005592/0.2924, allocations: 329.6 kB / 433.1 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.2934, allocations: 1.094 MB / 434.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002689/0.2936, allocations: 198.9 kB / 434.4 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003566/0.294, allocations: 412.9 kB / 434.8 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000386/0.2944, allocations: 465.1 kB / 435.3 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001424/0.2945, allocations: 120 kB / 435.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001528/0.2947, allocations: 119.6 kB / 435.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.2948, allocations: 226 kB / 435.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003199/0.2951, allocations: 446.9 kB / 436.2 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001697/0.2968, allocations: 1.231 MB / 437.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2968, allocations: 0.6562 kB / 437.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.2968, allocations: 1.125 kB / 437.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.379e-05/0.2969, allocations: 0 / 437.4 MB, free: 6.328 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.003537/0.3004, allocations: 1.275 MB / 438.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.3004, allocations: 9.875 kB / 438.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.566e-05/0.3005, allocations: 16.47 kB / 438.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001546/0.3006, allocations: 105 kB / 438.8 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/0.3008, allocations: 86.7 kB / 438.9 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000635/0.3014, allocations: 495.6 kB / 439.4 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/0.3015, allocations: 46.16 kB / 439.4 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.3016, allocations: 60.95 kB / 439.5 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002142/0.3037, allocations: 0.9711 MB / 440.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.3037, allocations: 1.188 kB / 440.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.649e-05/0.3038, allocations: 23.53 kB / 440.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.859e-05/0.3038, allocations: 15.16 kB / 440.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002928/0.3068, allocations: 0.9996 MB / 441.5 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004501/0.3113, allocations: 3.208 MB / 444.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002204/0.3135, allocations: 0.8814 MB / 445.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.3146, allocations: 427.1 kB / 446 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.965e-05/0.3146, allocations: 19.98 kB / 446 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001151/0.3158, allocations: 462.6 kB / 446.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.655e-06/0.3158, allocations: 0 / 446.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003266/0.3191, allocations: 1.103 MB / 447.6 MB, free: 1.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.608e-05/0.3191, allocations: 374.1 kB / 447.9 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008152/0.32, allocations: 0.5738 MB / 448.5 MB, free: 312 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.437e-05/0.32, allocations: 38.33 kB / 448.5 MB, free: 272 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002614/0.3203, allocations: 374.9 kB / 448.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/0.3205, allocations: 183.1 kB / 449.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002727/0.3208, allocations: 137.2 kB / 449.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002114/0.321, allocations: 378.2 kB / 449.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.3222, allocations: 402 kB / 450 MB, free: 15.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001523/0.3238, allocations: 0.676 MB / 450.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002367/0.3261, allocations: 0.9683 MB / 451.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.3261, allocations: 7.938 kB / 451.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00301/0.3292, allocations: 1.145 MB / 452.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.14e-05/0.3292, allocations: 64.8 kB / 452.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.3292, allocations: 5.656 kB / 452.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.477e-05/0.3293, allocations: 9.781 kB / 452.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009791/0.3302, allocations: 222.2 kB / 453.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/0.3303, allocations: 16.58 kB / 453.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/0.3313, allocations: 190.6 kB / 453.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.521e-05/0.3314, allocations: 30.91 kB / 453.3 MB, free: 13.66 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.0003514/0.3318, allocations: 227.8 kB / 453.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.3319, allocations: 73.28 kB / 453.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001717/0.332, allocations: 75.23 kB / 453.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.332, allocations: 4.125 kB / 453.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.3321, allocations: 2.078 kB / 453.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.3321, allocations: 3.5 kB / 453.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003513/0.3356, allocations: 1.672 MB / 455.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.3356, allocations: 0 / 455.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007906/0.3364, allocations: 152.4 kB / 455.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.3364, allocations: 1.438 kB / 455.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.756e-05/0.3364, allocations: 11.91 kB / 455.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.722e-06/0.3364, allocations: 7.797 kB / 455.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.3364, allocations: 3.938 kB / 455.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003365/0.3398, allocations: 1.299 MB / 456.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.34, allocations: 161.5 kB / 457 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.3401, allocations: 12.22 kB / 457 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007595/0.3409, allocations: 102.3 kB / 457.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.341, allocations: 50.78 kB / 457.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.545e-05/0.341, allocations: 19.55 kB / 457.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005886/0.3416, allocations: 402 kB / 457.6 MB, free: 11.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3416, allocations: 2.562 kB / 457.6 MB, free: 11.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006212/0.3423, allocations: 182.7 kB / 457.7 MB, free: 10.99 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.003774/0.346, allocations: 1.862 MB / 459.6 MB, free: 9.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00266/0.3487, allocations: 0.9646 MB / 460.6 MB, free: 9.199 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3487, allocations: 1.125 kB / 460.6 MB, free: 9.199 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.3498, allocations: 392.3 kB / 460.9 MB, free: 9.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000759/0.3506, allocations: 111.9 kB / 461.1 MB, free: 8.961 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/0.363, allocations: 6.465 MB / 467.5 MB, free: 4.715 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005199/0.3635, allocations: 0.8809 MB / 468.4 MB, free: 3.934 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00042/0.3639, allocations: 83.56 kB / 468.5 MB, free: 3.898 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004139/0.3644, allocations: 237.8 kB / 468.7 MB, free: 3.703 MB / 366.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3644, allocations: 3.938 kB / 468.7 MB, free: 3.699 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03889/0.4032, allocations: 14.53 MB / 483.3 MB, free: 6.609 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.904/9.307, allocations: 22.84 kB / 483.3 MB, free: 6.59 MB / 382.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --stepSize=1.97668e-11 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.627305458008777] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 9.43624018895207 9.451271926 9.150281789 Calling exit ...