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.002002/0.002002, allocations: 105.1 kB / 21.22 MB, free: 0.6797 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.002375/0.002375, allocations: 209.9 kB / 24.54 MB, free: 4.055 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.379/1.379, 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.001836/0.001836, allocations: 72.52 kB / 378.6 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2481, allocations: 53.38 MB / 431.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005424/0.2535, allocations: 4.276 MB / 436.2 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002085/0.2556, allocations: 1.234 MB / 437.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002183/0.2558, allocations: 11.94 kB / 437.5 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.256, allocations: 110.8 kB / 437.6 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000319/0.2563, allocations: 182.3 kB / 437.7 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005884/0.2569, allocations: 335.6 kB / 438.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001025/0.258, allocations: 1.085 MB / 439.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003269/0.2583, allocations: 199 kB / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004061/0.2587, allocations: 418.8 kB / 439.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005124/0.2592, allocations: 470.2 kB / 440.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001344/0.2593, allocations: 116 kB / 440.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001438/0.2595, allocations: 120 kB / 440.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001851/0.2597, allocations: 223.3 kB / 440.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000381/0.2601, allocations: 446 kB / 441.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.2612, allocations: 1.231 MB / 442.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2612, allocations: 7.938 kB / 442.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2612, allocations: 0 / 442.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.2612, allocations: 0 / 442.3 MB, free: 12.41 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.002608/0.2638, allocations: 1.202 MB / 443.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.2638, allocations: 12.03 kB / 443.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001239/0.264, allocations: 106.7 kB / 443.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001411/0.2641, allocations: 88.41 kB / 443.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000667/0.2648, allocations: 412.2 kB / 444.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.262e-05/0.2648, allocations: 49.67 kB / 444.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.2649, allocations: 56.38 kB / 444.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002003/0.2669, allocations: 0.9722 MB / 445.2 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.2669, allocations: 3.938 kB / 445.2 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.889e-05/0.267, allocations: 24 kB / 445.2 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.267, allocations: 12 kB / 445.3 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002646/0.2697, allocations: 1.003 MB / 446.3 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00454/0.2742, allocations: 3.156 MB / 449.4 MB, free: 5.051 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/0.2763, allocations: 0.739 MB / 450.2 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001078/0.2774, allocations: 425.7 kB / 450.6 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.153e-05/0.2774, allocations: 16.48 kB / 450.6 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001127/0.2785, allocations: 465 kB / 451 MB, free: 3.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.845e-06/0.2785, allocations: 0 / 451 MB, free: 3.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.00292/0.2815, allocations: 1.096 MB / 452.1 MB, free: 2.301 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002012/0.2817, allocations: 380.1 kB / 452.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007626/0.2824, allocations: 0.5771 MB / 453.1 MB, free: 1.254 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.586e-05/0.2825, allocations: 41.7 kB / 453.1 MB, free: 1.207 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002824/0.2828, allocations: 380.4 kB / 453.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.2829, allocations: 178.5 kB / 453.7 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002346/0.2831, allocations: 138.6 kB / 453.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.2833, allocations: 370.8 kB / 454.2 MB, free: 148 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/0.2844, allocations: 405.7 kB / 454.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.2857, allocations: 0.6772 MB / 455.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002081/0.2878, allocations: 0.9751 MB / 456.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.2878, allocations: 0 / 456.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00261/0.2904, allocations: 1.14 MB / 457.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.086e-05/0.2904, allocations: 63.41 kB / 457.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.2905, allocations: 8 kB / 457.4 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.494e-05/0.2905, allocations: 8 kB / 457.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009516/0.2914, allocations: 223.9 kB / 457.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.011e-05/0.2915, allocations: 15.94 kB / 457.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009135/0.2924, allocations: 195.2 kB / 457.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.148e-05/0.2924, allocations: 31.98 kB / 457.9 MB, free: 12.16 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.0002854/0.2927, allocations: 229.5 kB / 458.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.452e-05/0.2928, allocations: 67.58 kB / 458.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001546/0.293, allocations: 70.41 kB / 458.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.293, allocations: 4 kB / 458.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.293, allocations: 4 kB / 458.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.293, allocations: 3.984 kB / 458.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003094/0.2961, allocations: 1.645 MB / 459.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.2961, allocations: 0 / 459.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007192/0.2968, allocations: 155.8 kB / 460.1 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.2968, allocations: 0 / 460.1 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.133e-05/0.2968, allocations: 8 kB / 460.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.2968, allocations: 7.984 kB / 460.1 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.2969, allocations: 3.938 kB / 460.1 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002969/0.2998, allocations: 1.3 MB / 461.4 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.987e-05/0.2999, allocations: 75.52 kB / 461.5 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.937e-05/0.3, allocations: 12 kB / 461.5 MB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006842/0.3007, allocations: 103.9 kB / 461.6 MB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.3008, allocations: 56.28 kB / 461.6 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.776e-05/0.3009, allocations: 16 kB / 461.6 MB, free: 8.336 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005284/0.3014, allocations: 406.8 kB / 462 MB, free: 7.941 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3014, allocations: 7.875 kB / 462 MB, free: 7.934 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005406/0.3019, allocations: 179.8 kB / 462.2 MB, free: 7.758 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.003323/0.3053, allocations: 1.854 MB / 464.1 MB, free: 5.875 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00226/0.3075, allocations: 0.9773 MB / 465 MB, free: 4.879 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3075, allocations: 0 / 465 MB, free: 4.879 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009619/0.3085, allocations: 390.7 kB / 465.4 MB, free: 4.496 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005436/0.309, allocations: 110.2 kB / 465.5 MB, free: 4.391 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.32, allocations: 6.472 MB / 472 MB, free: 13.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004648/0.3204, allocations: 0.8746 MB / 472.9 MB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003752/0.3208, allocations: 84.84 kB / 473 MB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003831/0.3212, allocations: 235.4 kB / 473.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3212, allocations: 0 / 473.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04187/0.3631, allocations: 14.98 MB / 488.2 MB, free: 13.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.536/8.899, allocations: 4 kB / 488.2 MB, free: 13.62 MB / 398.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.298796619754285] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 8.994020827114582 9.016913459 8.75253156 Calling exit ...