Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.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.0008448/0.0008448, allocations: 79.7 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.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.0009004/0.0009004, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8698/0.8698, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.455e-06/2.455e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.746e-05/2.992e-05, allocations: 4.812 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01182/0.01185, allocations: 11.85 MB / 336.4 MB, free: 4.055 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01857/0.03043, allocations: 17.54 MB / 353.9 MB, free: 2.438 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002229/0.03265, allocations: 193.8 kB / 354.1 MB, free: 2.246 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002123/0.03478, allocations: 1.028 MB / 355.2 MB, free: 1.211 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005912/0.04069, allocations: 2.386 MB / 357.5 MB, free: 14.8 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003354/0.04404, allocations: 1.429 MB / 359 MB, free: 13.37 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006482/0.05053, allocations: 6.636 MB / 365.6 MB, free: 6.711 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005401/0.05107, allocations: 244.9 kB / 365.9 MB, free: 6.441 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001832/0.0529, allocations: 1.508 MB / 367.4 MB, free: 4.93 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008251/0.05372, allocations: 0.7473 MB / 368.1 MB, free: 4.18 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.05386, allocations: 68 kB / 368.2 MB, free: 4.113 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002766/0.05663, allocations: 1.213 MB / 369.4 MB, free: 2.898 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001891/0.05682, allocations: 305.8 kB / 369.7 MB, free: 2.598 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007179/0.05753, allocations: 0.7048 MB / 370.4 MB, free: 1.891 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003653/0.06119, allocations: 3.628 MB / 374 MB, free: 14.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.06119, allocations: 0 / 374 MB, free: 14.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.06119, allocations: 3.938 kB / 374 MB, free: 14.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.176e-05/0.06127, allocations: 0 / 374 MB, free: 14.25 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.003601/0.06487, allocations: 3.508 MB / 377.5 MB, free: 10.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.06491, allocations: 12.03 kB / 377.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.52e-05/0.06501, allocations: 94.5 kB / 377.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003381/0.06535, allocations: 393.6 kB / 378 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002501/0.06785, allocations: 2.359 MB / 380.4 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.674e-05/0.06788, allocations: 29 kB / 380.4 MB, free: 7.691 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.856e-05/0.06796, allocations: 51.94 kB / 380.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009013/0.06886, allocations: 0.7031 MB / 381.2 MB, free: 6.934 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.06888, allocations: 0 / 381.2 MB, free: 6.934 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.288e-05/0.06892, allocations: 16 kB / 381.2 MB, free: 6.918 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.06894, allocations: 23.98 kB / 381.2 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009037/0.06984, allocations: 0.789 MB / 382 MB, free: 6.109 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003382/0.07322, allocations: 2.687 MB / 384.7 MB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007631/0.07399, allocations: 0.5636 MB / 385.2 MB, free: 2.797 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006065/0.07459, allocations: 0.5811 MB / 385.8 MB, free: 2.207 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01546/0.09005, allocations: 13.68 MB / 399.5 MB, free: 4.148 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005211/0.09057, allocations: 362 kB / 399.9 MB, free: 3.777 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.535e-06/0.09057, allocations: 0 / 399.9 MB, free: 3.777 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.002352/0.09293, allocations: 1.323 MB / 401.2 MB, free: 2.445 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.09298, allocations: 67.34 kB / 401.2 MB, free: 2.367 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002672/0.09565, allocations: 2.823 MB / 404.1 MB, free: 15.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.593e-05/0.09572, allocations: 33.7 kB / 404.1 MB, free: 15.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009296/0.09665, allocations: 1.392 MB / 405.5 MB, free: 14.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001535/0.0968, allocations: 170.6 kB / 405.7 MB, free: 13.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002183/0.09702, allocations: 218.4 kB / 405.9 MB, free: 13.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.926e-05/0.09712, allocations: 341.9 kB / 406.2 MB, free: 13.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003806/0.0975, allocations: 237.9 kB / 406.4 MB, free: 13.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004993/0.098, allocations: 0.5927 MB / 407 MB, free: 12.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008842/0.09888, allocations: 0.8773 MB / 407.9 MB, free: 11.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.09889, allocations: 4 kB / 407.9 MB, free: 11.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001597/0.1005, allocations: 1.286 MB / 409.2 MB, free: 10.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.1005, allocations: 12 kB / 409.2 MB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.924e-05/0.1006, allocations: 83.98 kB / 409.3 MB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003893/0.101, allocations: 277.4 kB / 409.6 MB, free: 9.652 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003289/0.1013, allocations: 163.7 kB / 409.7 MB, free: 9.492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006838/0.102, allocations: 0.9012 MB / 410.6 MB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007546/0.1027, allocations: 103.3 kB / 410.7 MB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-05/0.1028, allocations: 64 kB / 410.8 MB, free: 8.406 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.0006074/0.1034, allocations: 429.4 kB / 411.2 MB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003577/0.1038, allocations: 389.5 kB / 411.6 MB, free: 7.594 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/0.1055, allocations: 1.248 MB / 412.8 MB, free: 6.328 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.854e-06/0.1055, allocations: 11.92 kB / 412.8 MB, free: 6.316 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1055, allocations: 0 / 412.8 MB, free: 6.316 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.1056, allocations: 0 / 412.8 MB, free: 6.316 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002433/0.108, allocations: 2.104 MB / 415 MB, free: 4.137 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.168e-05/0.108, allocations: 72 kB / 415 MB, free: 4.066 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001647/0.1082, allocations: 63.81 kB / 415.1 MB, free: 4.004 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002982/0.1085, allocations: 268.8 kB / 415.3 MB, free: 3.738 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.767e-05/0.1085, allocations: 35.98 kB / 415.4 MB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005798/0.1091, allocations: 0.853 MB / 416.2 MB, free: 2.824 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1091, allocations: 8.094 kB / 416.2 MB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.1103, allocations: 1.136 MB / 417.4 MB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005947/0.1109, allocations: 403.3 kB / 417.8 MB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001997/0.1111, allocations: 15.94 kB / 417.8 MB, free: 1.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003755/0.1115, allocations: 31.95 kB / 417.8 MB, free: 1.199 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.1116, allocations: 59.94 kB / 417.9 MB, free: 1.141 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.638e-05/0.1116, allocations: 39.98 kB / 417.9 MB, free: 1.102 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001942/0.1136, allocations: 1.827 MB / 419.7 MB, free: 15.27 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1136, allocations: 0 / 419.7 MB, free: 15.27 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001075/0.1147, allocations: 0.5657 MB / 420.3 MB, free: 14.7 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.002393/0.1171, allocations: 2.423 MB / 422.7 MB, free: 12.23 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001316/0.1184, allocations: 0.8345 MB / 423.6 MB, free: 11.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.1184, allocations: 4.125 kB / 423.6 MB, free: 11.37 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005542/0.1189, allocations: 460 kB / 424 MB, free: 10.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/0.1209, allocations: 0.607 MB / 424.6 MB, free: 10.29 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01941/0.1403, allocations: 15.99 MB / 440.6 MB, free: 9.738 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006404/0.141, allocations: 1.048 MB / 441.7 MB, free: 8.66 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007768/0.1417, allocations: 386.9 kB / 442 MB, free: 8.277 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007934/0.1425, allocations: 1.121 MB / 443.2 MB, free: 7.152 MB / 410.7 MB Notification: Performance of SimCode: time 1.252e-06/0.1425, allocations: 0 / 443.2 MB, free: 7.152 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.196/0.3386, allocations: 63.4 MB / 0.4947 GB, free: 67.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.362/9.701, allocations: 3.984 kB / 0.4947 GB, free: 67.8 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 11.93527620099485]