Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.00162/0.00162, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001903/0.001903, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009851/0.0009851, allocations: 47.8 kB / 301.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.086/0.08701, allocations: 49.44 MB / 350.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005362/0.09241, allocations: 4.225 MB / 354.9 MB, free: 160 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.09463, allocations: 1.18 MB / 356.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004685/0.09512, allocations: 11.94 kB / 356.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003485/0.09552, allocations: 110.9 kB / 356.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005552/0.09609, allocations: 178.3 kB / 356.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007333/0.09683, allocations: 323.6 kB / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.098, allocations: 1.093 MB / 357.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004306/0.09845, allocations: 290.5 kB / 358.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005099/0.09897, allocations: 402.8 kB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005616/0.09954, allocations: 466.2 kB / 359 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002226/0.09977, allocations: 116 kB / 359.1 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002087/0.09999, allocations: 120 kB / 359.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000203/0.1002, allocations: 223.4 kB / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004739/0.1007, allocations: 454 kB / 359.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.1018, allocations: 1.211 MB / 361.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1018, allocations: 0 / 361.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1018, allocations: 0 / 361.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.333e-05/0.1018, allocations: 0 / 361.1 MB, free: 10.01 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.003212/0.105, allocations: 1.27 MB / 362.3 MB, free: 8.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.1051, allocations: 8.031 kB / 362.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001927/0.1053, allocations: 84 kB / 362.4 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006249/0.1059, allocations: 477.5 kB / 362.9 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.106, allocations: 41.69 kB / 362.9 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.1061, allocations: 60.38 kB / 363 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002217/0.1083, allocations: 0.9645 MB / 364 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.1084, allocations: 4 kB / 364 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.818e-05/0.1084, allocations: 24 kB / 364 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.1085, allocations: 16 kB / 364 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00293/0.1114, allocations: 0.9991 MB / 365 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005159/0.1166, allocations: 3.2 MB / 368.2 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002386/0.119, allocations: 0.9142 MB / 369.1 MB, free: 1.621 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.1203, allocations: 441.8 kB / 369.5 MB, free: 1.184 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.189e-05/0.1204, allocations: 20.41 kB / 369.6 MB, free: 1.164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00132/0.1217, allocations: 473 kB / 370 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.647e-06/0.1217, allocations: 0 / 370 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.1676/0.2893, allocations: 1.093 MB / 371.1 MB, free: 25.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.2894, allocations: 369.3 kB / 371.5 MB, free: 25.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.2906, allocations: 0.5724 MB / 372.1 MB, free: 25.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000167/0.2907, allocations: 42.86 kB / 372.1 MB, free: 25.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002676/0.291, allocations: 365.4 kB / 372.5 MB, free: 24.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002362/0.2913, allocations: 170.4 kB / 372.6 MB, free: 24.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003524/0.2916, allocations: 140.1 kB / 372.8 MB, free: 24.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.2918, allocations: 373.4 kB / 373.1 MB, free: 24.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001359/0.2931, allocations: 406.7 kB / 373.5 MB, free: 24.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.2946, allocations: 0.6813 MB / 374.2 MB, free: 24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002485/0.2971, allocations: 0.9674 MB / 375.2 MB, free: 23.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.21e-05/0.2971, allocations: 6.234 kB / 375.2 MB, free: 23.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003123/0.3003, allocations: 1.135 MB / 376.3 MB, free: 23.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.557e-05/0.3003, allocations: 70.22 kB / 376.4 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.3004, allocations: 6.5 kB / 376.4 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.883e-05/0.3004, allocations: 10.31 kB / 376.4 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.3015, allocations: 221.8 kB / 376.6 MB, free: 22.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.085e-05/0.3015, allocations: 11.58 kB / 376.6 MB, free: 22.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/0.3029, allocations: 188.2 kB / 376.8 MB, free: 22.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.303, allocations: 31.45 kB / 376.8 MB, free: 22.88 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.000482/0.3035, allocations: 228.1 kB / 377.1 MB, free: 22.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/0.3037, allocations: 68.94 kB / 377.1 MB, free: 22.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002252/0.304, allocations: 74.77 kB / 377.2 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.304, allocations: 5.5 kB / 377.2 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.942e-05/0.304, allocations: 0 / 377.2 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.304, allocations: 2.906 kB / 377.2 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003767/0.3078, allocations: 1.675 MB / 378.9 MB, free: 21.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3078, allocations: 0 / 378.9 MB, free: 21.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008361/0.3087, allocations: 150.3 kB / 379 MB, free: 21.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.446e-05/0.3087, allocations: 1.188 kB / 379 MB, free: 21.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.629e-05/0.3088, allocations: 13.92 kB / 379 MB, free: 21.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.173e-06/0.3088, allocations: 2.094 kB / 379 MB, free: 21.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3088, allocations: 1.781 kB / 379 MB, free: 21.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003547/0.3123, allocations: 1.301 MB / 380.3 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002202/0.3126, allocations: 146.8 kB / 380.5 MB, free: 21.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001695/0.3128, allocations: 13.02 kB / 380.5 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008514/0.3136, allocations: 105.2 kB / 380.6 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/0.3138, allocations: 48.84 kB / 380.7 MB, free: 21.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.973e-05/0.3138, allocations: 16.47 kB / 380.7 MB, free: 21.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007342/0.3146, allocations: 405.1 kB / 381.1 MB, free: 20.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3146, allocations: 0 / 381.1 MB, free: 20.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008179/0.3154, allocations: 181.7 kB / 381.2 MB, free: 20.88 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.0001908/0.3156, allocations: 123 kB / 381.4 MB, free: 20.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003026/0.3187, allocations: 1.024 MB / 382.4 MB, free: 20.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.3187, allocations: 1.406 kB / 382.4 MB, free: 20.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.3199, allocations: 405.2 kB / 382.8 MB, free: 20.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007824/0.3207, allocations: 110.2 kB / 382.9 MB, free: 20.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002786/0.3234, allocations: 1.292 MB / 384.2 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004651/0.3239, allocations: 0.8855 MB / 385.1 MB, free: 18.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000323/0.3243, allocations: 59.36 kB / 385.1 MB, free: 18.77 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3243, allocations: 1.5 kB / 385.1 MB, free: 18.77 MB / 302.1 MB Notification: Performance of Templates: time 0.0151/0.3394, allocations: 9.272 MB / 394.4 MB, free: 14.18 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches