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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 108.4 kB / 18.34 MB, free: 4.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001773/0.001773, allocations: 186.9 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 51.92 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09103/0.0922, allocations: 46.63 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004748/0.09699, allocations: 4.037 MB / 332.8 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002034/0.09905, allocations: 1.127 MB / 333.9 MB, free: 14.56 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000202/0.09927, allocations: 16 kB / 333.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002251/0.09953, allocations: 94.97 kB / 334 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002839/0.09982, allocations: 158.5 kB / 334.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004809/0.1003, allocations: 287.6 kB / 334.4 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008738/0.1012, allocations: 0.9719 MB / 335.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003711/0.1016, allocations: 266.6 kB / 335.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003628/0.1019, allocations: 386.8 kB / 336 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004487/0.1024, allocations: 434.4 kB / 336.5 MB, free: 11.97 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.1025, allocations: 116 kB / 336.6 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.1027, allocations: 112 kB / 336.7 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002266/0.1029, allocations: 207.4 kB / 336.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003575/0.1033, allocations: 418.2 kB / 337.3 MB, free: 11.13 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009234/0.1042, allocations: 1.145 MB / 338.4 MB, free: 9.984 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.1042, allocations: 4 kB / 338.4 MB, free: 9.98 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1042, allocations: 0 / 338.4 MB, free: 9.98 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.1042, allocations: 0 / 338.4 MB, free: 9.98 MB / 286.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.002571/0.1068, allocations: 1.184 MB / 339.6 MB, free: 8.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.1069, allocations: 8.031 kB / 339.6 MB, free: 8.723 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.107, allocations: 84 kB / 339.7 MB, free: 8.641 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006205/0.1076, allocations: 437.9 kB / 340.1 MB, free: 8.172 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.93e-05/0.1077, allocations: 41.62 kB / 340.2 MB, free: 8.133 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.1078, allocations: 52.38 kB / 340.2 MB, free: 8.082 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001907/0.1097, allocations: 0.9329 MB / 341.2 MB, free: 7.082 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.1098, allocations: 0 / 341.2 MB, free: 7.082 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.987e-05/0.1098, allocations: 24 kB / 341.2 MB, free: 7.059 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.1099, allocations: 12 kB / 341.2 MB, free: 7.047 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002573/0.1124, allocations: 0.9756 MB / 342.2 MB, free: 6.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004041/0.1165, allocations: 3.044 MB / 345.2 MB, free: 2.895 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002189/0.1187, allocations: 0.9045 MB / 346.1 MB, free: 1.941 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.1198, allocations: 441.9 kB / 346.6 MB, free: 1.508 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.972e-05/0.1198, allocations: 16.58 kB / 346.6 MB, free: 1.492 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.1209, allocations: 461 kB / 347 MB, free: 1.027 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 2.034e-06/0.1209, allocations: 7.875 kB / 347 MB, free: 1.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=50): time 0.00288/0.1238, allocations: 1.084 MB / 348.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.1239, allocations: 273.4 kB / 348.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006288/0.1246, allocations: 0.5056 MB / 348.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.61e-05/0.1246, allocations: 45.69 kB / 348.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002183/0.1249, allocations: 335.6 kB / 349.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.125, allocations: 165.6 kB / 349.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002486/0.1253, allocations: 138.5 kB / 349.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1254, allocations: 366.7 kB / 349.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001095/0.1265, allocations: 405.7 kB / 350.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001208/0.1277, allocations: 0.6494 MB / 351 MB, free: 12.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002056/0.1298, allocations: 0.974 MB / 351.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.1298, allocations: 4 kB / 351.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002531/0.1324, allocations: 1.118 MB / 353.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.076e-05/0.1324, allocations: 63.39 kB / 353.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.1324, allocations: 8 kB / 353.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.1325, allocations: 8 kB / 353.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009937/0.1335, allocations: 228 kB / 353.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.034e-05/0.1335, allocations: 20.05 kB / 353.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009499/0.1344, allocations: 171.1 kB / 353.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.711e-05/0.1345, allocations: 39.92 kB / 353.6 MB, free: 10.12 MB / 302.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.0002517/0.1348, allocations: 209.6 kB / 353.8 MB, free: 9.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.09e-05/0.1349, allocations: 59.25 kB / 353.8 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.135, allocations: 69.58 kB / 353.9 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.135, allocations: 11.94 kB / 353.9 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.135, allocations: 0 / 353.9 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.135, allocations: 3.984 kB / 353.9 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003049/0.1381, allocations: 1.649 MB / 355.6 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1381, allocations: 0 / 355.6 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009729/0.1391, allocations: 151.8 kB / 355.7 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.1391, allocations: 0 / 355.7 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.967e-05/0.1392, allocations: 11.98 kB / 355.7 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.556e-06/0.1392, allocations: 7.938 kB / 355.7 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1392, allocations: 0 / 355.7 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003028/0.1422, allocations: 1.291 MB / 357 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.1424, allocations: 140.3 kB / 357.2 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.167e-05/0.1425, allocations: 12 kB / 357.2 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007193/0.1432, allocations: 103.9 kB / 357.3 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.1434, allocations: 48.38 kB / 357.3 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.531e-05/0.1434, allocations: 23.98 kB / 357.4 MB, free: 6.246 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005499/0.144, allocations: 350.8 kB / 357.7 MB, free: 5.906 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.144, allocations: 4 kB / 357.7 MB, free: 5.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006216/0.1446, allocations: 179.6 kB / 357.9 MB, free: 5.727 MB / 302.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.0001859/0.1448, allocations: 115.1 kB / 358 MB, free: 5.602 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002378/0.1472, allocations: 0.9896 MB / 359 MB, free: 4.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.1472, allocations: 192 / 359 MB, free: 4.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.1482, allocations: 414.2 kB / 359.4 MB, free: 4.184 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005252/0.1488, allocations: 89.86 kB / 359.5 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/0.1509, allocations: 1.164 MB / 360.6 MB, free: 2.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004414/0.1514, allocations: 0.851 MB / 361.5 MB, free: 2.027 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003277/0.1517, allocations: 80.67 kB / 361.6 MB, free: 1.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.1519, allocations: 59.36 kB / 361.6 MB, free: 1.887 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1519, allocations: 0 / 361.6 MB, free: 1.887 MB / 302.1 MB Notification: Performance of Templates: time 0.01311/0.1651, allocations: 8.109 MB / 369.7 MB, free: 9.777 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/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) Reference file matches