Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008372/0.0008372, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009904/0.0009904, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8736/0.8736, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 318.4 MB, free: 6.234 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.17e-05/1.302e-05, allocations: 2.281 kB / 318.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008533/0.008546, allocations: 11.82 MB / 330.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01748/0.02602, allocations: 17.49 MB / 347.7 MB, free: 8.789 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001627/0.02765, allocations: 193.8 kB / 347.9 MB, free: 8.598 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001977/0.02963, allocations: 1.044 MB / 349 MB, free: 7.547 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004707/0.03434, allocations: 2.382 MB / 351.4 MB, free: 5.145 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002988/0.03732, allocations: 1.422 MB / 352.8 MB, free: 3.719 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006354/0.04368, allocations: 6.566 MB / 359.3 MB, free: 13.13 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006324/0.04431, allocations: 237 kB / 359.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001764/0.04607, allocations: 1.508 MB / 361.1 MB, free: 11.35 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007656/0.04684, allocations: 0.7512 MB / 361.8 MB, free: 10.6 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.04698, allocations: 68 kB / 361.9 MB, free: 10.53 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0024/0.04938, allocations: 1.206 MB / 363.1 MB, free: 9.324 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.04956, allocations: 309.8 kB / 363.4 MB, free: 9.02 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006325/0.05019, allocations: 0.7009 MB / 364.1 MB, free: 8.316 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002966/0.05316, allocations: 3.636 MB / 367.7 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.05316, allocations: 0 / 367.7 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.05316, allocations: 0 / 367.7 MB, free: 4.668 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.622e-05/0.05323, allocations: 0 / 367.7 MB, free: 4.668 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.003076/0.0563, allocations: 3.515 MB / 371.3 MB, free: 1.098 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.05634, allocations: 8.922 kB / 371.3 MB, free: 1.09 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.717e-05/0.05643, allocations: 98.5 kB / 371.4 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002755/0.05671, allocations: 389.6 kB / 371.7 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002269/0.05898, allocations: 2.355 MB / 374.1 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.059, allocations: 36.94 kB / 374.1 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.376e-05/0.05908, allocations: 55.89 kB / 374.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008071/0.05989, allocations: 0.7031 MB / 374.9 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.0599, allocations: 0 / 374.9 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.515e-05/0.05995, allocations: 16 kB / 374.9 MB, free: 13.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/0.05996, allocations: 19.98 kB / 374.9 MB, free: 13.31 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008816/0.06085, allocations: 0.7929 MB / 375.7 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002899/0.06374, allocations: 2.676 MB / 378.4 MB, free: 9.793 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007269/0.06447, allocations: 0.5597 MB / 379 MB, free: 9.223 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005939/0.06507, allocations: 0.5772 MB / 379.5 MB, free: 8.645 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01451/0.07957, allocations: 13.66 MB / 393.2 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004614/0.08003, allocations: 361.8 kB / 393.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.823e-06/0.08004, allocations: 0 / 393.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001793/0.08183, allocations: 1.32 MB / 394.9 MB, free: 8.902 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.634e-05/0.08187, allocations: 63.41 kB / 394.9 MB, free: 8.828 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002392/0.08426, allocations: 2.823 MB / 397.8 MB, free: 5.984 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.08429, allocations: 37.7 kB / 397.8 MB, free: 5.941 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007742/0.08507, allocations: 1.396 MB / 399.2 MB, free: 4.539 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.634e-05/0.08517, allocations: 170.6 kB / 399.4 MB, free: 4.371 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.08534, allocations: 218.4 kB / 399.6 MB, free: 4.152 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.469e-05/0.08543, allocations: 337.9 kB / 399.9 MB, free: 3.816 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000337/0.08577, allocations: 237.9 kB / 400.1 MB, free: 3.582 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004829/0.08625, allocations: 0.5927 MB / 400.7 MB, free: 2.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000862/0.08711, allocations: 0.8889 MB / 401.6 MB, free: 1.762 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.08712, allocations: 4 kB / 401.6 MB, free: 1.758 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001429/0.08855, allocations: 1.282 MB / 402.9 MB, free: 472 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.08857, allocations: 12 kB / 402.9 MB, free: 460 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.225e-05/0.08863, allocations: 83.98 kB / 403 MB, free: 376 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00036/0.08899, allocations: 276.3 kB / 403.3 MB, free: 100 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/0.0893, allocations: 167.7 kB / 403.4 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006251/0.08993, allocations: 0.8841 MB / 404.3 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004923/0.09042, allocations: 115.3 kB / 404.4 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.912e-05/0.09049, allocations: 64 kB / 404.5 MB, free: 14.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0004539/0.09094, allocations: 422.1 kB / 404.9 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.09115, allocations: 385.5 kB / 405.3 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001569/0.09272, allocations: 1.248 MB / 406.5 MB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.934e-06/0.09273, allocations: 11.97 kB / 406.5 MB, free: 12.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.09273, allocations: 4 kB / 406.5 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.09274, allocations: 0 / 406.5 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002209/0.09495, allocations: 2.115 MB / 408.7 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.238e-05/0.095, allocations: 68 kB / 408.7 MB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000159/0.09516, allocations: 59.94 kB / 408.8 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004612/0.09562, allocations: 260.8 kB / 409 MB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.829e-05/0.09566, allocations: 35.98 kB / 409.1 MB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000561/0.09622, allocations: 0.8725 MB / 409.9 MB, free: 9.262 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.09622, allocations: 3.938 kB / 409.9 MB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.09727, allocations: 1.132 MB / 411.1 MB, free: 8.086 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004249/0.0977, allocations: 403.3 kB / 411.5 MB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002126/0.09791, allocations: 15.94 kB / 411.5 MB, free: 7.672 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003582/0.09827, allocations: 35.95 kB / 411.5 MB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.09837, allocations: 63.88 kB / 411.6 MB, free: 7.574 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.574e-05/0.09842, allocations: 39.98 kB / 411.6 MB, free: 7.535 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001477/0.09989, allocations: 1.82 MB / 413.4 MB, free: 5.711 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.09989, allocations: 0 / 413.4 MB, free: 5.711 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008835/0.1008, allocations: 0.5657 MB / 414 MB, free: 5.145 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001993/0.1028, allocations: 2.415 MB / 416.4 MB, free: 2.695 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.1038, allocations: 0.8227 MB / 417.2 MB, free: 1.852 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1038, allocations: 0 / 417.2 MB, free: 1.852 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005657/0.1043, allocations: 476.6 kB / 417.7 MB, free: 1.359 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.1057, allocations: 0.5951 MB / 418.3 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01521/0.121, allocations: 16 MB / 434.3 MB, free: 200 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006118/0.1216, allocations: 1.048 MB / 435.4 MB, free: 15.12 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000621/0.1222, allocations: 387 kB / 435.7 MB, free: 14.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007181/0.1229, allocations: 1.125 MB / 436.9 MB, free: 13.61 MB / 410.7 MB Notification: Performance of SimCode: time 8.61e-07/0.1229, allocations: 3.938 kB / 436.9 MB, free: 13.61 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1747/0.2976, allocations: 63.33 MB / 0.4885 GB, free: 80.64 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/10.33, allocations: 6.953 kB / 0.4885 GB, free: 80.64 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.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: 12.55285560619086]