Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.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.001278/0.001278, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001461/0.001461, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.469/1.469, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_NandGate",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.002865/0.002865, allocations: 68.77 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2654, allocations: 53.36 MB / 431.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006166/0.2715, allocations: 4.281 MB / 436.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00262/0.2742, allocations: 1.234 MB / 437.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003721/0.2745, allocations: 11.94 kB / 437.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002954/0.2748, allocations: 110.9 kB / 437.6 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004453/0.2753, allocations: 186.3 kB / 437.7 MB, free: 1.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007212/0.276, allocations: 327.6 kB / 438.1 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001292/0.2773, allocations: 1.093 MB / 439.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003614/0.2777, allocations: 199 kB / 439.3 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005217/0.2782, allocations: 414.8 kB / 439.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000579/0.2788, allocations: 466.2 kB / 440.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001632/0.2789, allocations: 120 kB / 440.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001756/0.2791, allocations: 116 kB / 440.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002045/0.2793, allocations: 227.3 kB / 440.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000457/0.2798, allocations: 458 kB / 441.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001266/0.281, allocations: 1.223 MB / 442.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.281, allocations: 0 / 442.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.281, allocations: 4 kB / 442.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.984e-05/0.281, allocations: 0 / 442.3 MB, free: 12.43 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.002945/0.284, allocations: 1.206 MB / 443.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.284, allocations: 8.031 kB / 443.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001253/0.2842, allocations: 106.6 kB / 443.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.2843, allocations: 88.42 kB / 443.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000695/0.285, allocations: 416.2 kB / 444.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.617e-05/0.2851, allocations: 45.69 kB / 444.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.2852, allocations: 56.38 kB / 444.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002181/0.2873, allocations: 0.976 MB / 445.2 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.2874, allocations: 0 / 445.2 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.178e-05/0.2874, allocations: 28 kB / 445.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.699e-05/0.2875, allocations: 16 kB / 445.3 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002814/0.2903, allocations: 1.003 MB / 446.3 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005176/0.2954, allocations: 3.148 MB / 449.4 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002339/0.2978, allocations: 0.7428 MB / 450.2 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.299, allocations: 425.7 kB / 450.6 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.51e-05/0.2991, allocations: 20.48 kB / 450.6 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001215/0.3003, allocations: 465 kB / 451 MB, free: 3.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 5.4e-06/0.3003, allocations: 4 kB / 451 MB, free: 3.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003269/0.3036, allocations: 1.092 MB / 452.1 MB, free: 2.312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002509/0.3038, allocations: 380.2 kB / 452.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009142/0.3047, allocations: 0.5771 MB / 453.1 MB, free: 1.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.041e-05/0.3048, allocations: 37.7 kB / 453.1 MB, free: 1.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003017/0.3051, allocations: 384.4 kB / 453.5 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.3053, allocations: 174.5 kB / 453.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002524/0.3055, allocations: 138.6 kB / 453.8 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002088/0.3057, allocations: 370.8 kB / 454.2 MB, free: 164 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.3069, allocations: 409.6 kB / 454.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001379/0.3083, allocations: 0.6733 MB / 455.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002274/0.3106, allocations: 0.979 MB / 456.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.627e-05/0.3106, allocations: 4 kB / 456.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002958/0.3136, allocations: 1.136 MB / 457.4 MB, free: 12.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.218e-05/0.3137, allocations: 63.41 kB / 457.4 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.3137, allocations: 4 kB / 457.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.214e-05/0.3137, allocations: 20.27 kB / 457.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/0.3148, allocations: 219.6 kB / 457.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.367e-05/0.3148, allocations: 15.92 kB / 457.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.3158, allocations: 187.2 kB / 457.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.338e-05/0.3159, allocations: 31.98 kB / 457.9 MB, free: 12.18 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.0003645/0.3163, allocations: 229.5 kB / 458.1 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.3164, allocations: 67.58 kB / 458.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001718/0.3166, allocations: 74.41 kB / 458.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.3166, allocations: 4 kB / 458.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.3166, allocations: 3.984 kB / 458.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.259e-06/0.3166, allocations: 3.938 kB / 458.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003523/0.3201, allocations: 1.649 MB / 459.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.3201, allocations: 0 / 459.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007873/0.3209, allocations: 147.8 kB / 460.1 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.156e-06/0.3209, allocations: 7.938 kB / 460.1 MB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.212e-05/0.321, allocations: 15.98 kB / 460.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.321, allocations: 0 / 460.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.321, allocations: 7.938 kB / 460.1 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003354/0.3243, allocations: 1.3 MB / 461.4 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.3245, allocations: 71.59 kB / 461.5 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001328/0.3246, allocations: 16 kB / 461.5 MB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007581/0.3254, allocations: 103.8 kB / 461.6 MB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.3256, allocations: 60.23 kB / 461.6 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.25e-05/0.3256, allocations: 11.98 kB / 461.6 MB, free: 8.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006366/0.3262, allocations: 398.8 kB / 462 MB, free: 7.953 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3262, allocations: 0 / 462 MB, free: 7.953 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006899/0.3269, allocations: 183.8 kB / 462.2 MB, free: 7.773 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.003814/0.3307, allocations: 1.859 MB / 464.1 MB, free: 5.883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002534/0.3333, allocations: 0.9728 MB / 465 MB, free: 4.891 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.3333, allocations: 0 / 465 MB, free: 4.891 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.3344, allocations: 395.3 kB / 465.4 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006891/0.3351, allocations: 106.1 kB / 465.5 MB, free: 4.402 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01402/0.3491, allocations: 6.464 MB / 472 MB, free: 13.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006737/0.3498, allocations: 0.8785 MB / 472.9 MB, free: 12.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006155/0.3504, allocations: 88.84 kB / 473 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005185/0.3509, allocations: 235.4 kB / 473.2 MB, free: 12.45 MB / 382.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3509, allocations: 0 / 473.2 MB, free: 12.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04884/0.3997, allocations: 14.98 MB / 488.2 MB, free: 13.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.23/9.63, allocations: 4.062 kB / 488.2 MB, free: 13.64 MB / 398.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --stepSize=1.97668e-11 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.951733428053558] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 9.709248971194029 9.722824301 9.438744382 Calling exit ...