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.001553/0.001553, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.001423/0.001423, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.439/1.439, allocations: 230.5 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-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.002007/0.002007, allocations: 71.83 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1127, allocations: 53.33 MB / 427 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005589/0.1183, allocations: 4.276 MB / 431.3 MB, free: 500 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2112/0.3295, allocations: 1.202 MB / 432.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003875/0.3299, allocations: 11.97 kB / 432.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000264/0.3301, allocations: 111.4 kB / 432.6 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004797/0.3306, allocations: 186.3 kB / 432.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007746/0.3314, allocations: 329.6 kB / 433.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.3326, allocations: 1.09 MB / 434.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003319/0.3329, allocations: 197.8 kB / 434.4 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000515/0.3334, allocations: 414.6 kB / 434.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004505/0.3339, allocations: 470.8 kB / 435.3 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000162/0.3341, allocations: 118.2 kB / 435.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.3342, allocations: 118.6 kB / 435.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.3344, allocations: 230.6 kB / 435.7 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004107/0.3348, allocations: 442.2 kB / 436.2 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001467/0.3363, allocations: 1.227 MB / 437.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.3363, allocations: 0 / 437.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3363, allocations: 0.5156 kB / 437.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.279e-05/0.3363, allocations: 1.125 kB / 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.003509/0.3398, allocations: 1.278 MB / 438.7 MB, free: 5.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.3398, allocations: 12.45 kB / 438.7 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00015/0.34, allocations: 99.97 kB / 438.8 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002194/0.3402, allocations: 87.5 kB / 438.9 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007386/0.341, allocations: 488.5 kB / 439.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.721e-05/0.341, allocations: 45.62 kB / 439.4 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.3411, allocations: 62.12 kB / 439.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002241/0.3434, allocations: 0.9669 MB / 440.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.3434, allocations: 4 kB / 440.4 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.867e-05/0.3435, allocations: 28.38 kB / 440.4 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.3435, allocations: 18.59 kB / 440.5 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003089/0.3466, allocations: 0.9997 MB / 441.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004808/0.3514, allocations: 3.208 MB / 444.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002363/0.3537, allocations: 0.8857 MB / 445.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.355, allocations: 422.7 kB / 446 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.651e-05/0.355, allocations: 16.67 kB / 446 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001271/0.3563, allocations: 466.3 kB / 446.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.575e-06/0.3563, allocations: 0 / 446.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003412/0.3597, allocations: 1.094 MB / 447.5 MB, free: 1.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.985e-05/0.3598, allocations: 379.1 kB / 447.9 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009018/0.3607, allocations: 0.5736 MB / 448.5 MB, free: 312 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.157e-05/0.3608, allocations: 42.61 kB / 448.5 MB, free: 268 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002525/0.3611, allocations: 374.7 kB / 448.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/0.3613, allocations: 181.4 kB / 449.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002886/0.3615, allocations: 142.2 kB / 449.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.3617, allocations: 381.3 kB / 449.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/0.3631, allocations: 402.4 kB / 450 MB, free: 15.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/0.3647, allocations: 0.6765 MB / 450.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002462/0.3671, allocations: 0.9649 MB / 451.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.3671, allocations: 6.062 kB / 451.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003089/0.3702, allocations: 1.141 MB / 452.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.165e-05/0.3703, allocations: 64.78 kB / 452.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.3703, allocations: 9.422 kB / 452.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.44e-05/0.3703, allocations: 10.69 kB / 452.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.3713, allocations: 217.3 kB / 453 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.445e-05/0.3714, allocations: 23 kB / 453.1 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.3725, allocations: 190.3 kB / 453.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.646e-05/0.3726, allocations: 33.16 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.0003571/0.373, allocations: 227.3 kB / 453.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.3731, allocations: 72.66 kB / 453.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001797/0.3733, allocations: 71.2 kB / 453.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.3733, allocations: 10.44 kB / 453.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.3733, allocations: 3.938 kB / 453.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.3733, allocations: 4.922 kB / 453.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003562/0.3769, allocations: 1.665 MB / 455.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3769, allocations: 0 / 455.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008026/0.3777, allocations: 149.3 kB / 455.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.002e-06/0.3777, allocations: 5.406 kB / 455.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.307e-05/0.3777, allocations: 12.48 kB / 455.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.3777, allocations: 1.312 kB / 455.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.3777, allocations: 5.062 kB / 455.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003521/0.3813, allocations: 1.307 MB / 456.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.3815, allocations: 148.5 kB / 456.9 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.3816, allocations: 17.36 kB / 457 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007786/0.3824, allocations: 104.6 kB / 457.1 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.3825, allocations: 51.62 kB / 457.1 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.587e-05/0.3826, allocations: 15.19 kB / 457.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006504/0.3832, allocations: 401.8 kB / 457.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3832, allocations: 0 / 457.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006699/0.3839, allocations: 180.9 kB / 457.7 MB, free: 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.003854/0.3877, allocations: 1.868 MB / 459.6 MB, free: 9.742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002758/0.3905, allocations: 0.9681 MB / 460.5 MB, free: 9.207 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.3905, allocations: 1.281 kB / 460.5 MB, free: 9.207 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.3917, allocations: 392.3 kB / 460.9 MB, free: 9.031 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000752/0.3924, allocations: 105.7 kB / 461 MB, free: 8.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01348/0.4059, allocations: 6.476 MB / 467.5 MB, free: 4.723 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004749/0.4064, allocations: 0.8797 MB / 468.4 MB, free: 3.941 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004394/0.4068, allocations: 87.86 kB / 468.5 MB, free: 3.902 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004218/0.4072, allocations: 229.8 kB / 468.7 MB, free: 3.715 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4072, allocations: 0 / 468.7 MB, free: 3.715 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04278/0.45, allocations: 14.52 MB / 483.2 MB, free: 6.668 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.878/9.328, allocations: 16.03 kB / 483.2 MB, free: 6.652 MB / 382.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate_res.csv --start-time 0 --stop-time 1e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.97668e-11 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.833557637874037] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 9.405839790124446 9.419719115 9.080641003 Calling exit ...