Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002085/0.002085, allocations: 112.1 kB / 21.19 MB, free: 0.7031 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.002877/0.002877, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.668/1.668, allocations: 207.6 MB / 235.3 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002698/0.002698, allocations: 55.92 kB / 347.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3386, allocations: 49.16 MB / 396.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004901/0.3435, allocations: 4.064 MB / 400.5 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001822/0.3453, allocations: 1.137 MB / 401.6 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002341/0.3455, allocations: 9.5 kB / 401.6 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002461/0.3458, allocations: 98.3 kB / 401.7 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002988/0.3461, allocations: 172.8 kB / 401.9 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000508/0.3466, allocations: 280.1 kB / 402.1 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000851/0.3474, allocations: 0.9678 MB / 403.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003161/0.3478, allocations: 204.1 kB / 403.3 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003735/0.3481, allocations: 388.9 kB / 403.7 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004426/0.3486, allocations: 435.2 kB / 404.1 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001573/0.3487, allocations: 114 kB / 404.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001705/0.3489, allocations: 114 kB / 404.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.3491, allocations: 218.8 kB / 404.6 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003274/0.3494, allocations: 412 kB / 405 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00119/0.3506, allocations: 1.146 MB / 406.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3506, allocations: 0 / 406.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3506, allocations: 0 / 406.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.3506, allocations: 0 / 406.1 MB, free: 2.926 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00287/0.3535, allocations: 1.13 MB / 407.2 MB, free: 2.238 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.3535, allocations: 17.02 kB / 407.2 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001345/0.3536, allocations: 98.25 kB / 407.3 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.3538, allocations: 78.73 kB / 407.4 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006055/0.3544, allocations: 384.8 kB / 407.8 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.572e-05/0.3545, allocations: 45.72 kB / 407.8 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-05/0.3546, allocations: 56.48 kB / 407.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002205/0.3568, allocations: 0.9249 MB / 408.8 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.3568, allocations: 3.938 kB / 408.8 MB, free: 1.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.178e-05/0.3569, allocations: 28.03 kB / 408.9 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/0.3569, allocations: 17.23 kB / 408.9 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002611/0.3595, allocations: 0.9761 MB / 409.8 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004718/0.3642, allocations: 3.003 MB / 412.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002447/0.3667, allocations: 0.7354 MB / 413.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00128/0.3679, allocations: 420.7 kB / 414 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.166e-05/0.368, allocations: 15.95 kB / 414 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001275/0.3693, allocations: 459.9 kB / 414.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.317e-06/0.3693, allocations: 1.156 kB / 414.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.004926/0.3742, allocations: 1.089 MB / 415.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002865/0.3745, allocations: 273.3 kB / 415.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001467/0.376, allocations: 0.5 MB / 416.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001078/0.3761, allocations: 38.11 kB / 416.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004654/0.3765, allocations: 352.8 kB / 416.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002886/0.3768, allocations: 179.1 kB / 416.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004351/0.3773, allocations: 139.8 kB / 417 MB, free: 11.74 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002828/0.3775, allocations: 367.2 kB / 417.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002069/0.3796, allocations: 393.9 kB / 417.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002534/0.3821, allocations: 0.6519 MB / 418.4 MB, free: 10.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004504/0.3866, allocations: 0.9641 MB / 419.4 MB, free: 9.996 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/0.3867, allocations: 5.219 kB / 419.4 MB, free: 9.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.005236/0.3919, allocations: 1.133 MB / 420.5 MB, free: 9.387 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.614e-05/0.392, allocations: 64.72 kB / 420.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/0.392, allocations: 6.875 kB / 420.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.019e-05/0.392, allocations: 13.44 kB / 420.6 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001824/0.3939, allocations: 226.4 kB / 420.8 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.948e-05/0.3939, allocations: 14.62 kB / 420.8 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/0.3959, allocations: 175.9 kB / 421 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.396, allocations: 29.38 kB / 421 MB, free: 9.145 MB / 334.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.0005528/0.3965, allocations: 217 kB / 421.2 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000191/0.3967, allocations: 60.28 kB / 421.3 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002323/0.3969, allocations: 62.69 kB / 421.4 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-05/0.397, allocations: 9 kB / 421.4 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.575e-05/0.397, allocations: 3.938 kB / 421.4 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.397, allocations: 9.469 kB / 421.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005729/0.4027, allocations: 1.612 MB / 423 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.4027, allocations: 0 / 423 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/0.4041, allocations: 157.2 kB / 423.1 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.7e-05/0.4041, allocations: 5.219 kB / 423.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.481e-05/0.4042, allocations: 12.91 kB / 423.2 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.235e-06/0.4042, allocations: 1.375 kB / 423.2 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.4042, allocations: 0 / 423.2 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005222/0.4094, allocations: 1.298 MB / 424.5 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002576/0.4096, allocations: 63.52 kB / 424.5 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.4098, allocations: 12 kB / 424.5 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/0.411, allocations: 103.9 kB / 424.6 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.4112, allocations: 56.34 kB / 424.7 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.261e-05/0.4113, allocations: 19.98 kB / 424.7 MB, free: 6.238 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000899/0.4122, allocations: 346.9 kB / 425.1 MB, free: 5.902 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4122, allocations: 0 / 425.1 MB, free: 5.902 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001076/0.4133, allocations: 171.8 kB / 425.2 MB, free: 5.734 MB / 334.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.006381/0.4197, allocations: 1.851 MB / 427.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004569/0.4242, allocations: 0.9614 MB / 428 MB, free: 2.867 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.4242, allocations: 0.875 kB / 428 MB, free: 2.867 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001892/0.4261, allocations: 402.2 kB / 428.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/0.4273, allocations: 85.88 kB / 428.5 MB, free: 2.391 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01514/0.4424, allocations: 6.187 MB / 434.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005608/0.443, allocations: 0.8548 MB / 435.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004423/0.4434, allocations: 80.66 kB / 435.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004029/0.4438, allocations: 211.4 kB / 435.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4438, allocations: 0 / 435.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05153/0.4953, allocations: 13.95 MB / 449.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.09, allocations: 7.922 kB / 449.8 MB, free: 12.74 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.010853581996344]