Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.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.0008197/0.0008197, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.000836/0.000836, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9125/0.9125, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.442e-06/1.442e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.582e-05/1.726e-05, allocations: 3.125 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008993/0.00901, allocations: 11.85 MB / 336.3 MB, free: 4.008 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01647/0.02548, allocations: 17.53 MB / 353.9 MB, free: 2.402 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002038/0.02752, allocations: 193.8 kB / 354.1 MB, free: 2.211 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001989/0.0295, allocations: 1.032 MB / 355.1 MB, free: 1.172 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005164/0.03467, allocations: 2.382 MB / 357.5 MB, free: 14.77 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002894/0.03756, allocations: 1.429 MB / 358.9 MB, free: 13.34 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005788/0.04335, allocations: 6.644 MB / 365.6 MB, free: 6.672 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003455/0.0437, allocations: 252.9 kB / 365.8 MB, free: 6.395 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.04476, allocations: 1.5 MB / 367.3 MB, free: 4.891 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005952/0.04535, allocations: 0.7511 MB / 368.1 MB, free: 4.137 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.822e-05/0.04544, allocations: 72 kB / 368.1 MB, free: 4.066 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002158/0.0476, allocations: 1.21 MB / 369.3 MB, free: 2.855 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001709/0.04777, allocations: 313.7 kB / 369.6 MB, free: 2.547 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005506/0.04832, allocations: 0.6931 MB / 370.3 MB, free: 1.852 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002742/0.05106, allocations: 3.632 MB / 374 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.05107, allocations: 0 / 374 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.05107, allocations: 0 / 374 MB, free: 14.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.078e-05/0.0511, allocations: 0 / 374 MB, free: 14.2 MB / 346.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.003264/0.05437, allocations: 3.512 MB / 377.5 MB, free: 10.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.05441, allocations: 15.98 kB / 377.5 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.775e-05/0.0545, allocations: 98.44 kB / 377.6 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000246/0.05475, allocations: 389.6 kB / 378 MB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002159/0.0569, allocations: 2.355 MB / 380.3 MB, free: 7.676 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.05693, allocations: 37 kB / 380.4 MB, free: 7.637 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.92e-05/0.05701, allocations: 51.92 kB / 380.4 MB, free: 7.586 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007905/0.0578, allocations: 0.7031 MB / 381.1 MB, free: 6.875 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.05781, allocations: 3.938 kB / 381.1 MB, free: 6.871 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.094e-05/0.05785, allocations: 20 kB / 381.1 MB, free: 6.852 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.05787, allocations: 19.98 kB / 381.2 MB, free: 6.832 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008888/0.05876, allocations: 0.7851 MB / 381.9 MB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002966/0.06172, allocations: 2.684 MB / 384.6 MB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006869/0.06241, allocations: 0.5636 MB / 385.2 MB, free: 2.738 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005696/0.06298, allocations: 0.585 MB / 385.8 MB, free: 2.148 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01377/0.07675, allocations: 13.69 MB / 399.5 MB, free: 4.086 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004807/0.07723, allocations: 358 kB / 399.8 MB, free: 3.723 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.074e-06/0.07723, allocations: 0 / 399.8 MB, free: 3.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001771/0.079, allocations: 1.324 MB / 401.1 MB, free: 2.387 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.07904, allocations: 59.34 kB / 401.2 MB, free: 2.316 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002139/0.08118, allocations: 2.823 MB / 404 MB, free: 15.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.833e-05/0.08122, allocations: 41.64 kB / 404.1 MB, free: 15.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007799/0.082, allocations: 1.396 MB / 405.5 MB, free: 14.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.0821, allocations: 174.5 kB / 405.6 MB, free: 13.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001757/0.08227, allocations: 218.4 kB / 405.8 MB, free: 13.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.037e-05/0.08237, allocations: 337.9 kB / 406.2 MB, free: 13.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003384/0.0827, allocations: 241.9 kB / 406.4 MB, free: 13.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004774/0.08318, allocations: 0.5888 MB / 407 MB, free: 12.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008676/0.08405, allocations: 0.8773 MB / 407.9 MB, free: 11.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.777e-06/0.08406, allocations: 4 kB / 407.9 MB, free: 11.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001425/0.08548, allocations: 1.282 MB / 409.2 MB, free: 9.957 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.08551, allocations: 12 kB / 409.2 MB, free: 9.945 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.06e-05/0.08558, allocations: 80 kB / 409.2 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003891/0.08597, allocations: 281.1 kB / 409.5 MB, free: 9.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003295/0.0863, allocations: 167.7 kB / 409.7 MB, free: 9.426 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006602/0.08696, allocations: 0.8909 MB / 410.6 MB, free: 8.512 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004751/0.08743, allocations: 111.4 kB / 410.7 MB, free: 8.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.623e-05/0.08751, allocations: 64 kB / 410.7 MB, free: 8.34 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.0004818/0.08799, allocations: 417.5 kB / 411.2 MB, free: 7.922 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002372/0.08823, allocations: 385.5 kB / 411.5 MB, free: 7.543 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/0.08991, allocations: 1.248 MB / 412.8 MB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.08992, allocations: 4 kB / 412.8 MB, free: 6.273 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.08992, allocations: 0 / 412.8 MB, free: 6.273 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.08993, allocations: 11.92 kB / 412.8 MB, free: 6.262 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002122/0.09205, allocations: 2.111 MB / 414.9 MB, free: 4.074 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.228e-05/0.09213, allocations: 68 kB / 415 MB, free: 4.008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000148/0.09228, allocations: 67.88 kB / 415 MB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002683/0.09255, allocations: 260.8 kB / 415.3 MB, free: 3.684 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.709e-05/0.09259, allocations: 35.98 kB / 415.3 MB, free: 3.648 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006197/0.09321, allocations: 0.8616 MB / 416.2 MB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.09321, allocations: 3.938 kB / 416.2 MB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.09425, allocations: 1.132 MB / 417.3 MB, free: 1.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005213/0.09477, allocations: 411.3 kB / 417.7 MB, free: 1.184 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.09492, allocations: 11.94 kB / 417.7 MB, free: 1.172 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003385/0.09526, allocations: 31.97 kB / 417.8 MB, free: 1.141 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.09536, allocations: 63.92 kB / 417.8 MB, free: 1.078 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.123e-05/0.09541, allocations: 40 kB / 417.9 MB, free: 1.039 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001456/0.09686, allocations: 1.824 MB / 419.7 MB, free: 15.21 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.09686, allocations: 0 / 419.7 MB, free: 15.21 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008147/0.09768, allocations: 0.5696 MB / 420.3 MB, free: 14.64 MB / 394.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.002231/0.09991, allocations: 2.426 MB / 422.7 MB, free: 12.17 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009811/0.1009, allocations: 0.8225 MB / 423.5 MB, free: 11.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1009, allocations: 0 / 423.5 MB, free: 11.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004824/0.1014, allocations: 472.1 kB / 424 MB, free: 10.84 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001294/0.1027, allocations: 0.5986 MB / 424.6 MB, free: 10.24 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01584/0.1185, allocations: 15.98 MB / 440.6 MB, free: 9.699 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006152/0.1191, allocations: 1.041 MB / 441.6 MB, free: 8.629 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006352/0.1198, allocations: 398.9 kB / 442 MB, free: 8.234 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009605/0.1207, allocations: 1.121 MB / 443.1 MB, free: 7.109 MB / 410.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1207, allocations: 4 kB / 443.1 MB, free: 7.105 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1884/0.3091, allocations: 63.37 MB / 0.4946 GB, free: 67.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.3/10.61, allocations: 3.375 kB / 0.4946 GB, free: 67.55 MB / 410.7 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.893120638094842]